Fixes old reference to anchor in resourcemodule.py

See issue #928. Also fixes render_to_response call.