Implement fake document_build and document_run.

The idea is that these would be overriden by the relevant file plugin to do the right thing depending on the file language, if applicable.
Add status_mode view factory.

It's currently a dummy implementation, events need to be implemented first.
Sort event entries