Added function to create ids for mongodb
Added eventbinders on client
Alot of fixes and improvements