Added ability to specify arbitrary effects in the CGI action.

There's an extremely hacky bit, and I don't know exactly why it works, but it'll do for now.