Made all into AMD modules and major refactor into separate modules.
Merge branch 'gh-pages' of github.com:garethfoote/ifs2014-map into gh-pages