Updating and re-organizing unit tests. Adding a few views in the api and webui to access data.