new absolute url support in url_for and better json deserialization