Pass ?json in the URL and get response in json.
Minor refactoring
Added web api to get areas.