Refactoring: remove curve module

Some work in preparation for https://bugs.launchpad.net/oq-engine/+bug/1174231

This will introduce an API breakage, so a companion pull request on oq-engine is upcoming.