Add `struct state`:

Instead of passing duk_context around we now wrap it in a `struct state`
where we can add more variables/state that we need.