Refactor project structure / allow pip installation

This patch modifies the layout of the project to conform to common
conventions and includes a test directory, introduces the Nose
dependency, and allows installation via pip.