Some method and demo for using the IME for the web
Expose database state to client with more callbacks