fixed test routes
added tests and prettified requirejs config conditional
Merge pull request #839 from lonelyplanet/bt-appcore

removed require async config if app_core is set to false