Fix for #439 and several commits for MOMathon 2016
Created by: StephanMa
xf:output wasn't able to interact with the given values from the instance because it doesn't know the model. Moved xf:group with model declaration to the beginning of the div.