Ilsgateway bugs

@czue I fixed this bug: http://manage.dimagi.com/default.asp?134684#755968

Also I've changed a little bit checkpoint functionality. I've added table to ILSGateway config view to follow status of checkpoint. Could you merge this with staging?