Added unit tests, controllers, factories and directives for examples.