resolve #390, added close_view command and link to qml
Merge pull request #392 from snowiow/master

resolve #390, added close_view command and link to qml
Merge commands/close_view.go with commands/view.go.
Make sure we close the remaining views in the CloseView test.
Lock when setting scratch or overwrite status.

Fix #394.
Lock when reading View.IsScratch, too.
Add a lock to the log writer.
Pull Edit into its own file.