Email working, job checking, admin priviledges.

lots of other changes too