Pickle and Unpickle theano functions

Added a test case to verify if pickle and unpickle a compiled theano function works.
Passed.
I still strongly disagree with the infinitely growing graph db approach.