samples: more testing, some refactoring, fix sesar template def
samples: more testing, some refactoring, fix sesar template def

eapearson/kbase-ui,eapearson/kbase-ui,eapearson/kbase-ui,eapearson/kbase-ui,eapearson/kbase-ui