Add ability to link watched variable to brightness via transfer function

Re: [#168](https://github.com/openworm/OpenWorm/issues/168)