Throw error when writing read-only variables in server module

Fixes Ticket #66 for the server module but not elsewhere