Refactored out blueprints dependency from core module.

- Created dedicated blueprints module for blueprints graph base classes
- Reimplemented HeapGraphDatabase without dependency on blueprints
- Added HeapGraphDatabaseStressTest