refactor Model, add possibility for insert HABTM
refactoring model’s relations, implement environments, configurations from yaml, add blackhole logger by default