Reorganizing the lib files

Organized these more according to the common conventions of rails.

Also took out the relative requires