Big refactoring

- Improved performance moving work out of the UI Thread
- Added automatic rotation of JPEG images based on EXIF information
- Added ability to load local files (eg. from the Gallery) using Uri
- Auto downscale images if not enough memory is available
- Fixed a few bugs