added DEBUG setting, switched to single CSS file for main and logging

The DEBUG setting controls the router debug setting and whether the
dev or prod versions of 3rd party JS files are used. Currently have
to use un-minified version of backbone.js because it is causing an
exception at startup.
routing broken for Android logging POSTs

The posting of logs was broken by #af5146c3e2422827d3a828c186881206e56b8b26
because the Android clients need to post to /log/ but it go renamed
/logs
added recording of internal IP address

The next version of the Android app will put the internal IP address
in the logging data. This value is put in to extra['internal']['ip']