Adding paletteMap and threshold for BitmapData on HTML5.
Merge pull request #244 from bendmorris/bmdata-funcs

Adding paletteMap and threshold for BitmapData on HTML5.