moved more controlling logic into core from object. added support for
other rendering functions than hiccup's. test with enlive for now