Small refactoring and fixes.

``s_rest.parse_href`` will now be called ``s_rest.reverse``. The old
method is still available for legacy code, but deprecated and will be
removed in future versions.