Better input loading (update to `engine` API)

These change allow us to decouple the calculation bootstrap process a bit from the filesystem. This is needed by the oq-engine-server in order to initialize calculations before queuing the job.

Related to https://bugs.launchpad.net/oq-engine/+bug/1206913.