Cleanup gem config and use rake for proj tasks

Use module namespace
Generalise method for restarting apache