Refactor resource paths

Issue #14 resolved
paj
repo owner created an issue

It should be easier to register resources. One option is to automatically set module, this could be done with code like: sys._getframe(1).f_globals['name'] It is also important to be able to avoid the module/path setup and just give an absolute path to the resource. Resource and template location should be as similar as possible.