Input Pattern Grid Clear Button Update

I added a 'Clear' button to the Pattern Input page that removes the pattern from both the grid and web session. All of this code is in need of review, however all new tests pass.