rake alchemy:db:dump can now use --host option for mysqldump.

Refactors the codebase and made it more DRYish.

Introduced a fully tested DatabaseHelpers module that shares its methods between the db.rake and capistrano tasks.