Show the getUserMedia camera stream when a MIDlet opens a capture://image media element
Take a shot from the camera stream
Send a MMAPI_EVENT native event when the screenshot is taken and return its data back to DirectPlayer. Fixes #358
Use image format for toBlob from the encoding parameter instead of hardcoding it as 'image/jpeg'
Missing fromJavaString in DirectPlayer::nStartSnapshot
Use 'image/jpeg' as default if getSnapshot parameter is null
Also add top offset
Support long press gesture event
Don't send GESTURE_DRAG or GESTURE_DROP if the gesture was a long press
combine data and stat records
Merge branch 'fs-perf' into merge-stat
Merge branch 'fs-perf' into merge-stat
Support DirectPlayer::nGetDuration. Fixes #653
Add getDuration test
Merge branch 'master' of https://github.com/andreasgal/j2me.js into get_Duration

Conflicts:
	tests/automation.js
Support API for vibrations
Add test for DeviceControl::startVibra and DeviceControl::stopVibra
Merge pull request #643 from marco-c/camera_2

Support taking pictures
Merge pull request #646 from marco-c/long_press

Support long press gesture event
Merge pull request #655 from marco-c/vibration

Support API for vibrations