Added build script.
Added a simple test case (generated from Protobuf.NET) and fixed some bugs that it uncovered. Also added some basic logging.