Analysis waiting page hotfix

Explicit int conversion of ids
Updates for Job & Study object changes
Also again, hacky code for demo that needs to get fixed.