Add Blueprint#beforeInstall

Also use `--type=foo` instead of `type:foo` in route and resource
blueprints.
Merge pull request #1498 from jgwhite/blueprint-before-install

Add --type option and check to controller and route blueprints