Configure with JSON

Configuration files are now handled using JSON data format, a more secure, user friendly way to configure the system.