Log auth success
Added envelope_to_json back
Added type to outgoing envelopes
Minor fixes
Reminder to update tests for envelope record