fix ifOnEdgeBounce logic for CAT-1060

change repositioning logic
adapt tests
differ between horizontal and vertical border
Merge pull request #1038 from Catrobat/physics_CAT-1060_IfOnEdgeBounce

fix ifOnEdgeBounce logic for CAT-1060
PhysicObject hangup and resume use the categoryMaskRecord now
Modify PhysicsActionTestCase, HideCollisionTest

Provide two sprites in `PhysicsActionTestCase.class` [ sprite1, sprite2
]
Add `PhysicsActionTestCase.setContactListener()` and hooks to use for
the action-tests
Add `HideActionAndCollisionTest`

Conflicts:
	catroidTest/src/org/catrobat/catroid/test/physics/actions/IfOnEdgeBouncePhysicsActionTest.java