Moving code into separate files

Moved datamapper code into separate file
Moved Mechanize into separate file