Add functional tests for greetings and login.

Functional tests do pass, but they produce a erl-crashdump,
is this a good sign?