Convert waitpage and submission page to polymer

Submission test cases are now segregated, which should make them a
little easier to read.