Bug fixed so that when the AJAX fails on a call to the clear button, the AJAX
error message actually appears on screan.
Warning added to the clear button, so that the user is asked for confirmation
to clear their pattern from the grid and session before it happens.