Cleaned up and removed dead code. Changed api to be served from root of server