Added GSON template to Controller, taken from Rob Fletcher's tests