Refactor websubmit, Fixes bug APP always in pending
HOTFIX
HOTFIX B
HOTFIX C
Merge pull request #6 from tind/websubmit_refactoring

Websubmit refactoring