Move defaults to template constructor

Move defaults to template constructor like discussed here: https://github.com/owncloud/core/pull/4030

cc @jancborchardt @DeepDiver1975 @butonic