refactor js file to single app js, added morris and raphael for graphing, refactored controllers