Added mongodb support, insert/authenticate/notify functions are not working yet. COmments will come. Tomorrow...