basic support for galleries
Support for opening gallery with file=
smaller fixes
proper controller reset
small TS fixes,
more unit tests