use url_for to generate urls instead of hardcoding them

In resweb/core.py use url_for to generate urls instead of hardcoding them.
Thanks