Fixed the "Undefined index: json_route" problem: https://gsoc.trac.wordpress.org/ticket/336
Moved includes to inside json_api_loaded(): https://gsoc.trac.wordpress.org/ticket/337