remove Representer#before_serialize. this was only existent to allow calling prepare_links when using Hypermedia. this is now called in the getter for :links.
prepare_links! is now called in the getter: for :links. that is way more straight-forward then using the ominous #before_serialize hook.