Add group bitmask filtering for PhysicsCollisionObject

PhysicsCharacter, PhysicsGhostObject and PhysicsRigidBody now supports
collision filtering using bitmasks.

See issue #1029 on github.
Fixed compilation error on Android

Without the explicit cast call to std::string::insert(size_t, size_t, char)
becomes ambiguous.
fixed early exit when iterating Theme overlays
Changed shorts to ints for collision group bitfields.
Android build: Clean assets folder before building package

Otherwise deleted files from the project remain in the built .apk archive.
Merge pull request #1053 from rgngl/physicsFilters

Add group bitmask filtering for PhysicsCollisionObject
Merge pull request #1055 from rgngl/androidFix

Fixed compilation error on Android
Merge pull request #1060 from rgngl/androidBuildClean

Android build: Clean assets folder before building package
Merge pull request #1061 from blackberry/master

Merge master to next
Merge pull request #1059 from reven86/next-clean

fixed early exit when iterating Theme overlays
Merge pull request #1062 from blackberry/master

Merge master to next
Changed TextBox "space" function so luagen doesn't tyr to generate a binding for it
Merge branch 'next' into helpful-additions-textureCube
Updated android build template

The new library path for armeabi-v7a was missing in the build file.
Reverted changes made by sgrenier in regards to loopBlendTime

Prevents division by zero when there is only one frame
Merge pull request #1064 from rgngl/androidBuildFix

Updated android build template
Merge pull request #1065 from stratboy61/master

Simply reverted part of sgrenier fix regarding loopBlendTime
Fix to ensure determineIndex() selects the correct frame when time is at min or max
Merge pull request #1066 from noggs/master

Fix to ensure determineIndex() selects the correct frame when time is at min or max
Merge pull request #1067 from blackberry/master

Merge master to next