Merge pull request #50 from DanielUranga/master

Fixed some Android JNI bugs.
Testing changes to use the BitmapData canvas if only one Bitmap references it (instead always copying to a new canvas)
Added a SoundChannel.position setter, added a fix for <sound> getLength,now returns  correct value.
Minor fixes
Adding getLength for <sound> on iOS
Fixing incorrect return types and completing the missing setter for SDLSound.cpp (setPosition)
Merge pull request #51 from DanielUranga/master

More JNI fixes.
Merged changes from SVN
Merge branch 'master' of github.com:haxenme/NME
Added "nme create extension <name>" and extended "nme rebuild" to support compiling user extensions.

If you want to create a new NME extension, open a commend-prompt and run "nme create extension MyCoolExtension". This creates a template with a simple sample method.

To compile, run "nme rebuild <target>" in the same directory, or "nme rebuild path/to/extension/directory <target>" or "nme rebuild <name of haxelib> <target>"

You can also use commas to denote multiple targets, like "nme rebuild my-extension windows,android,blackberry"
Added support for more BPS event handlers, improved the project template for extensions
Improved handling of names when generating a new extension using the template
BlackBerry extension fix
Re-do BPS events so they do not require a native API. Pushing a new "SystemEvent" type
Minor fix
Linux fix
Run script fix
Added initial Blackberry get orientation support.
Merge remote-tracking branch 'upstream/master'

Conflicts:
	project/blackberry/System.cpp