added wp_trksit_handleError function to check if the trksit_errors variable is a wp_error, if not create error, if it is already error, add message to existing error.

generate_urls template loops through error messages

If short URL is not generated, delete the record from the database.  Record is inserted first to get insert_id, then updated later to reflect the short URL.  On error, it just deletes the row using the insert_id.