Get username and state from CherryPy request