refractoring some code into directives and services.  Adding authentication and user-based todos