Merge pull request #24 from reekoheek/master

Introduce theme middleware and functions