Added in another default template function, marshaling an object to json.  Added another method for setting a session value with associated options for more fine controll.