start adding interface
refactor code to avoid confusing json/python distinction, get rid of commandcontainer and fieldcontainer, improve interface exception handling,