Refactoring to move client code into subfolder.

Prepping us for the Backbone refactor.