Added Petition and BackEndFunctions classes.
Merge branch 'master' into UI-Branch
UI first