Added possibility of a JSON response
Added JSON response structure
Completed routing mechanic