added local storage. created new controllers, services, directives and views.