Seperate module

I separated out the sections of the module to make the gem easier to edit and update in the future.

Among the changes that aren't strictly 1-to-1:

* Converted Client to a class
* Changed to JSON hash Syntax (Ruby 1.9+)
* Changed english operators to logical (Control flow issues)
* Updated setup and teardown to only change stout and stderr if needed.

If I can get something like this through, I intend to try and work out a way to get a remote editor to work next as that'd be insanely useful. That, and adding tests. I can do that one as well.