Create new wiCore.Document interface.

Move View.IsDirty() to Document.IsDirty().