Added initial library files and began test suite.

This software is highly incomplete.  Please don't use it.