Added support for sending data to content files

function.js has been updated to allow sending POST data to content files
to enable us to check user's access before displaying the content.
Merge remote-tracking branch 'origin/duggasys-master' into duggasys-Quiz