Avoid loading middleman-core unless needed.

 Fixes #1203.