Automatic init for both console & mvc applications