return error messages for http apis
display error messages in web app
beautify the web app
move the common functions between the angular controllers
use node http server to serve the static files from static
directory and update the urls from relative to absolute in the web app