3.0 - Move set() into a trait

This method is copy + pasted 3 times in the code. Extract it out into a trait. I have it in Cake\Utility right now as its used in View, Controller and Console packages as well, so Utility seemed like a reasonable place to put it.