Parse items according to itemtype field as a reusable function
Merge branch 'v2' of github.com:microcosm-cc/microweb into v2