Initial Bastion generator.

Added tests.