Re-organize source files

The informal standard for Node.js modules is to place JavaScript source
files in the `lib` directory (`src` is reserved for C/C++ source).