Move directive to a module
Merge pull request #1 from dhoko/master

Move the directive to a module