Added support for www. as absolute URL

Moved controller on the same file as directives.
Moved url patterns
Test init
Added travis build