Some minor cleaning up [ci skip].
Pretty CellML view: check whether an editor is useable (#17) [ci skip].

This is useful in case we want to open an invalid CellML file using the
Pretty CellML view.
Some minor cleaning up [ci skip].
Pretty CellML view: some work on a CellML to pretty CellML converter (#494) [ci skip].