Full auto memory

In case you would rather accept a single pull request instead of the three pieces. Here is a pull request that contains the other three pull requests. It adds the following functionality
1. Detection of Cancel
2. Automatic creation of JSON object (No longer necessary to update HTML form and JSON object)
3. Session based memory. (In short all form values are remembered for the duration of the watch app session.)
I actually did test this on Android, and it was working. However, I haven't been happy with how fragile this check is. I'll put in a better one.