added offline forms handling
misc ui
renamed main module to sm.main
works on forms UI
lots of stuff, including code for indexeddb