Moved install to its own module.

This way it will be exported by the API. Fixes #146