Upgrade to latest DocumentJS

This upgrades everything to work with the latest DocumentJS. Works well.
Fixes #262 [ci skip]
Make API active when not in the index

Just did this the way that the documentjs layout template works.