Fixed judgehost bugs and added client side code.
Merge branch 'master' of github.com:ttalvitie/cses