Added support for high DPI displays

Scales canvas resolution based on devicePixelRatio and backingStorePixelRatio properties to support devices with high DPI displays (issue #61).

Tested on an iPhone 5 and iPad 3. Should also support the Retina MacBook Pro but I don't have one available to test on.