statement drag&drop reorder implementation, section restructure, cleanups, initial storage work

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>