Refactorings, pom generation plugin.

Refactored bear initialization, added environment vars init, added CLI vars init.