Add the debugOnly flag and switch the api calls to be camelCased.

This should make sure we don't bundle mocha into production builds.

This should be tested, I am getting stuck at 'Loading' with a spinner when my tests should be running.
/cc @rissem