Serve static files as well as application API

modified server, add angular.
format code for readability