convert client side to single page app using angularjs

thought i'd do a pull request before just pushing into master so you guys can give me the ok for the changes.