Curtis fixes

- Pull certificates from databags
- Fix agent registering with server

@sjcary