Add framebuffer object and monitor object

This implements the framebuffer and monitor object
Also here, cmp should return -1, 0, 1.