Refactor posts@store and posts@update, add env and mail instructions in readme.md