Implemented login request handling
Fixed transport names
Minor line ending fix
Start pre_data with communication layer
Set up databae on start
fixed several issues.
Log auth success
Added envelope_to_json back
Added type to outgoing envelopes
Minor fixes
Reminder to update tests for envelope record
Fixed bug where mnesia schema/tables were ram only.
Not registering the proto as a named process.

Since there are going to be many many connections, we should not
be using a named gen_server for the proto, since there can only be
one of a given name running.
corrected minor bugs

 - fixed typo in `tcpport` (client expects `tcpPort`)
 - do not start the client connection process as a transient.
 - do not start the client connection process as a a registered pid.
Improved logging, added reply on tcp connect.
Added missing active, once call.
Fixed several bugs in handling tcp messages.
Merge pull request #29 from SkewedAspect/bug-to-login

Bug to login