resource_uri and home_link refactored, added tests

As mentioned in https://github.com/nicolaiarocci/eve/issues/253, refactoring of home_link and resource_uri was needed.