Added structure to the flask server API responses.
Got loadcatalog() working and fixed some structured replies.