move decorator functions to classes
Correct tests now that decorators are classes
copy process_return_values to decorators.py

This is from client.py and should be removed there and replaced with
smarter thing for __get/setitem__.
add vectorize and local as classes in decorators.py
tests for local and vectorize