Adds ability exclude and include colums in instance view

Allow users to specify include and exclude columns when viewing
instances, separately to the collection view.

Requires some changes to the unit tests and addition of unit tests.