Add toggle event for enabled checkbox.

The model still needs a URL defined so that it can be properly saved on
the backend.
Add backend support for enabling/disabling a plugin via the UI.
Update client to add send_event method.

Try to interpolate the correct data types from the command line.
Fix client writer not closing bug.