Load config from JSON file

This implements issue #927 and allows us to load Flask config from JSON files that can be shared for example with frontend dev tools like grunt.