Add tasks spec:unit and spec:integration
Fix unit test.

and divide helpers to permalink_helper
Merge branch 'active-record' of github.com:lokka/lokka into active-record