Merge pull request #13 from esseks/master

Externalize and make explicit DB session management, introducing user ID.
Fixing hash -> password rename.
Merge branch 'master' of github.com:BitsDevelopmentTeam/bits-server
Flushing before broadcasting Message from fonera.