Ensure controller modules return a function

All modules loaded by the bootstrap module are expected to return a function. This change throws a explanatory exception rather than a generic TypeError.