added analytics controller, service, and directive
master branch additions
take two