Concurrent, fine-grained compilation

Needs closer review.
This might help with #30.