Routing helpers and better server/gs

Added helpers for easy routing of parameters in Ruby and Python
scripts.

Improved server. Modified gs to be more REST and to use the routing
helper.