physics: Implement geometry, body and world classes

The implementation is roughly the same as it used to be, but Bullet headers don't leak outside any more.