App config

Fix for #256 

This should work, please test and merge if you're happy with it.
Several other pages in the api doc page didn't work before, this PR should solve these issues as well.