Move link obj generation to separate method

This is in prep for building nested resource support.
Merge pull request #1 from synthsym/feature/uri_gen_method

Move link obj generation to separate method