introduced partial htmls and angularjs module.
Uses angular-resource to handle api calls.