More changes

While trying to get acquainted with node.js, I started to restructure the fs layout and some of the code. If you have the time to do so, take a look at my branch and check if any of the changes I've made are of any value to the project.