Improved program architecture. '$locationChangeStart' redirects to login page if user is not authenticated. User authentication is maintained in '$cookieStore'. Changes in user items factory.