Reorganize code into static library and examples, use Make subdirs for compilation, update readme

Cleaning things up before I start working on it. Let me know if there are some parts of this you disagree with, and how to change them :-).

There are also a couple of other branches floating around on GitHub that might be interesting to pull things from; I'll wait till this reaches parity before considering those.