Squish: Enhance tst_codepasting

* set a random expiry for the paste
* make sure server side errors are handled

Change-Id: I28feab982fefbb97a9f603144943a57cc268538c
Reviewed-by: Robert Loehning <robert.loehning@digia.com>