declare exchanges and queues on connecting/reconnecting

handlers are not working yet, nor is publishing implemented
missing exchanges are automatically declared with the default settings.