Specifying an ajax data type to prevent issues with mime type detection.

In certain circumstances the hekad web server was returning the wrong mime type for json files and breaking decoding. The data type is now being specified based on the URL to prevent this from happening in the future.