Transferring code from Google Code project.

With some renaming, and additional changes made while at APN.
Adding brief usage info, fixing up the readme.