Generate and submit registrationId, fixes #25

If we're expecting to get registrationIds from others, it's only fair
that we also supply our own.
Merge remote-tracking branch 'lilia/master'
THOUGH SALL USE TABSTOP AND SHIFTWIDTH 4 (so that indents read right)
Clean up session retreival (fixes #30)