Tweaks to allow public javascript files to be loaded in any order.
Pulled mapping definitions out of server.js.