Add travis-ci script
Merge pull request #46 from Chilledheart/travis-ci

Add travis-ci script
Resolve pidfile resource leaks

This patch resolves resource leaks caused by not closing the file streams upon
an write error.
Implement role-manager for emailuser
Fix build for role-mgr
Fix typos