Some fixes in the GRASS backend, cleaned up

Handling of input/output type encoding in the GRASS backend improved. Cleaned up demo requests and test client.