Encapsulated DBClient() and added custom events. Also added backend Socket.IO
updated unit tests to match new DBclient object
unstashed db unit test changes
Merge branch 'client'

Adding client features