Fixed server app to work and also log file serving errors.
Rejigged the whole app to use requirejs as specified in the documentation. Still doesn't work.