Minor refactoring to reduce package tangling.

Moved BaseDefinition to 'core' and AbstractDeployer to 'stream'.