Moved design loading into a 'sync' function, added basic validation of schemas.
Made the activity list a sortable table. Merged environment.js into context.js

Also made the context calculable at every request - in preparation for
better access controls.