Cleaned up views and fixed inheritance.
Moved map endpoint out of api.