Added SSL to rabbitMQ communications between shoal-agent and shoal-client and fixed a few minor bugs (mostly in catch blocks)