added post functions and forms, still need to determine correct JSON format from html <form>