Write XML serializer, implement enumerated rotation matrices

I screwed up the Makefile. couldn't figure out how to compile libxml2 statically so I had to remove that flag and then install it with `apt-get install libxml2-dev`.

Fixes #2, #4, #5