Speedup loading

Improve startup time and activation time by requiring and constructing stuff as late as possible. 

On my machine loading time dropped from 250ms to 34ms. Activation time is now ⩽5ms. It's still a lot, but I don't know how to speed it up further.

This pull request probably closes #37.