Initial commit of functions.py
Add new functions.py module to __init__.py
Change client side tests to work with functions.py
Remove functions from context.
reflect move of functions in client.py