Restructured project into lib and test directories and updated package.json accordingly.
Wrote travis file.