Implements managers and refactor namespace

This  makes the API way more pythonic and homogeneous. This API is not compatible with the 2.0-beta2 release. Client code must be updated!