Move all the things

This PR aims to make the class and module structure more sensible.

Under the new arrangement, the domain classes live under `/lib` and are independent of rails.

This PR fixes #62.