Integrated real layer selection, working toward final rendering by webgl.

Still not getting zoom or translate callbacks, and not currently drawing
final pass so that aspect ratio of original images is maintained.