Add a new Box2D bodies factory

This factory is being used now in all samples to reduce the amount
of code.