Unclog circular dependency in the cython code

I believe that this should fix bug #523 by moving cogserver dependencies out of the python code.