ensure state exists for the template to render
Merge branch '4_bug_state_undefined' into gymapp
add a /tokens endpoint for incoming POSTs. issue #1