add do_premit in config-contract mode
rewrite acisampleslib. Use arparse instead of getopt