Move to Flask-Registry and debug fixes

Please note that https://github.com/inveniosoftware/flask-registry/pull/9 must be integrated first, before this commit will pass tests.