more changes to colorbox

pulled more code from the sprite editor into the colorbox module. Added
some documentation to the colorbox.