[Runtime] Add main document(aka "event page") launch support

Ref to http://anssiko.github.io/runtime/app-lifecycle.html. Although the spec is under discussion and review, we first adopt the "document" type main document for implementation. Currently the main document only works as a launch entry, all runtime events/lifecycle are not supported yet.