Split c code into many files. Add PPM support and better scaling.

oilrb.c now has all ruby-specific code.