Initial checkin

Builds with CodeSourcery. Totally untested!