chnaged js directory structure; added angular source file and base angular controller file
added base template
clean up code
improved base controller interface
set up routing: added format parameter to entity index route; handling json format request
integration angular to index entity page