added protocol for physics body contacts, new frame for triggering a loss and functionality to check bitmasks on contact