Re-code product thumbnail functions to prioritise use of post thumbnail ...

...if available to reduce unnecessary requests.

In wpsc_the_product_image() check if there is a post thumbnail first before getting first child image as this saves requests.

Can also use wpsc_the_product_thumbnail_id() to avoid repetitive code.

Plus a bit of code tidy.