Add binio.{cc,h}, binary IO helper/wrapper class
Refactor BSP classes, make loading endian-safe
Cosmetic changes in image.cc