Merge pull request #21 from wilsonpage/camera-refactor-rebased

Move towards dependency injection in app.js. Pulled out ConfirmDialog
Merge pull request #22 from wilsonpage/camera-refactor-rebased

Typo
Merge pull request #23 from wilsonpage/camera-refactor-rebased

Unit tests and perf
Move into config directory
Tidy and remove dep on constants
Update constants path
Update config path and make 'orientation' a proper dependency
Move and rename constants to more specific name
Delete old confirm file
Update paths
Update paths
Apply djf's patch to 1.4 refactor (Bug 936353)
Move into utils
Remove orientation global
Pull out blob preview processing logic to util
Abolish window.orientation global
Support optional dependency injection
Remove proto
Pull out video poster image code into standalone module