Added flags for specifying port, store file, and htdocs dir. Also writes store on every clockout now to avoid data loss.