Use flask-utils and depend on their JSON support and authz functionality.
Push out more argument parsing into flask-utils
Front-end for contexts UI.