Add group bitmask filtering for PhysicsCollisionObject

PhysicsCharacter, PhysicsGhostObject and PhysicsRigidBody now supports
collision filtering using bitmasks.

See issue #1029 on github.