Simplified thumbnail handling for layers

The indirect approach was causing a lot of unnecesary requests to GeoServer, moved all thumbnail handling to the pmethod that creates links. There is also a new link for Thumbnails in there.
Fixed missing import in proxy module