Changed set_encoder flag (fixes #98)

It seems like the Jython rpyc stuff doesn't
like calling hasattr on a remote object.  Reworked
the code to avoid that (and made it simpler anyway)
Merge branch 'master' of https://github.com/ctn-waterloo/nengo_gui