Start moving logic to plugin. Helper functions in oz.py
Merge branch 'master' of https://github.com/dmrd/oz