starting to pull search into its own class.
refactored server.js added tests.
added more tests, simplified sorting DSL.
server refactor.
Merge pull request #24 from bcoe/bcoe/server-tests

refactoring server.js, adding tests