Appease valgrind.
Now builds on OS X.
Merged.
Starting to refactor the file API.
Oops, I broke wiki saving.
Took some baby steps toward security.

* Implemented a rudimentary require() to make it easiet to use multiple backend .js files.
* Used a pure javascript bCrypt library to compute password hashes.