Consolidate getContestId and getSubmitId.
Cleanup Main.hs.
Add error handling.