Move global variables to environment config. Restructure UX on submitting posts.