new style Handler

refactored Agent/Handler classes to use dictionary (JSON)
PUT to create and configure the instance