Add some testing to the library. Ubuntu 12.04 to start.

Tests fail right now, but this'd be good to merge once they pass..