* rewrite to coffee-script
+ AbstractNoSQL supports events
+ isOpen()/opened to test whether the database is opened
+ emit 'open' and 'ready' event after the database is opened
+ emit 'closed' event after the database is closed.