move model-guessing code out of main()
get max(entity id) before and after entity batch import

Report to the user whether any entity IDs were requested while
the import was in progress.
raise Exceptions if bad args instead of just print/sys.exit