added umd & use a prototype

added umd header 'returnExportsGlobal'
- commonsJS
- AMD
- global 'Framebuffer'

moved everything into a FrameBuffer prototype
- usable with-or-without new()
- applied changes to use this

formatted code indent
- indenting was inconsistent, went for 4 spaces

added demo-amd
added title to html