Remove rake dependency

I had problem loading the rake and once removed it works.
This PR also contains a clean version of pull request #1, fixing the sub-domain error.
Please take a look, thanks.