Add instance authentication support

Adds support for having a authentication block in the instance config.