Moving JSONDict to flask.wrappers - See #686 for discussion