Reorg source, add tests, enhance implementation.

This really should have been split into multiple commits, but hey where you
are hacking a little library together all by yourself sometimes you don't
remember to checkpoint your work often enough.

- Moved main script into src directory.
- Added rake based runner for Jasmine tests.
- Added Gemfile to simplify ruby build system setup.
- Added unit tests using the Jasmine library.
- Fixed bug in private/protected member name unmangling.
- Used tests to uncover need for `r` and `R` processing.
- Added license (MIT)