Merge branch '3.1.x'
fixed events add/edit event forms

The problem with the views is that there was still one statement using
the removed "_t()" function. It has now been fixed to use the "__()"
function.
Merge remote-tracking branch 'origin/hotfix'
created upgrade script to version 3.1.4

- refactored app_controller's _checkDatabaseVersion
	- renamed to _checkSystemVersion
	- now checks system version number - assuming that when
	a database upgrade is needed, the system version number
	also increases
- changed sql script's database.version to 7 and system.version to
3.1.3 (current version). Need to update to 3.1.4 when the system is
bumped to 3.1.4
- refactored upgrade index view to show the current installed system
and database versions and the most recent versions.
- created an upgrade script soley for updating the system version.
This upgrade script will always be upgradable if the system version
in the core is higher than the one in the database.
	- removed the system version update from the upgrade base
	- added an additionaly logic to also make the system version
	upgrade script to be upgradable if the system.version parameter
	is not found.
fixed super admins unable to view all instructors and faculty admins

The reason was super admins were also using the custom filter for
faculty admins; which means they can only see instructors and admins
that are in the faculties the super admin is enroled in. This has been
fixed by fixing the condition to skip the filtering for super admins.

I have also modified the test data to not enrol the super admin in the
two test faculties since in production super admins are not automatically
enroled in all faculties (and departments)

Due to the enrolment removal mentioned above, the "getIdsByUserId"
function test became broken when a super admin user id is passed.
There is no easy fix to this until we can check for a user's permission
based on the userId passed in (instead of the logged in user). Therefore,
I have commented that one test case untilk I have more time to implement
a permanent fix for this.
implemented some validations to event edit

1. If the form is not fully loaded, and the user tries to submit
the form, an error message will appear. This is so that unwanted
modifications to the event will not be saved.

2. Another validation has been added to ask the user for confirmation
that they wanted to remove groups that were initially in the event.
If no original groups have been removed, no confirmation dialog will
appear when the form is submitted. If one or more original group has
been removed, a confirmation dialog will appear. Whether new groups
have been added to the event will not affect conditions.

3. I've also updated the events system test to expect the confirmation
dialog and to click accept before continuing with the rest of the tests.
added commands to refresh the cache directory into the upgrade script

- in the production mode, cakephp doesn't refresh the cache directory,
so we'll need to do it manually whenever we upgrade the database.
- I've created a function in the upgrade_base for this purpose, which is called
every time an upgrade script is run.
fixed releasing comments for student view of evaluation results

- after the feature to un/release individual comments have been
implemented the release mechanism for comments became broken.
- now the grade/comment release status are default to be set to
released if the auto-release option is turned on. If the option is
kept off, the release status is unreleased.
- so if users want to remove specific comments from the results,
they can do so and the change will be reflected on the student
evaluation results view.
- when the release status is saved on the events add/edit form,
the group events' grade and comment release status is:
        - set to None if auto-release is off
        - set to Auto if auto-release is on
- if the auto-release option is changed through the edit form,
all the submitted evaluations' comment and grade release status would
be changed appropriately.
- some duplicate functions have been removed (also removed their
backend tests)
fixed some bugs && temporarily removed show student events

- fixed saving mixed evaluations inputs when the whole form is not
complete
- temporarily hid the "show events" action because not all types
of evaluations are fully functional. Through basic testing, only
simple evaluations seem to be functional
- in upgrade_base, the system.absolute_url is no longer being updated.
A value is only added if no value was there initially.
Merge branch 'master' into origin/hotfix
Move delta 5 into delta 4 and remove sql mode in 6

The database versions between 3.0 to 3.1 are all 4. So delta_5 should be
merged into 4
Fix the failed test and update version in sample data
Fix missing formLoaded parameter in event editing

formLoaded parameter is added to ensure the page is loaded before user
can click submit.
Fix the daylight saving issue
Revert "Fix the daylight saving issue"

This reverts commit 588abd844a05dcafa04cf52966a18f4e822593a3.
Update vagrant and puppet modules
Add system.version parameter to delta7

As sys_parameter->save() doesn't create the new parameters. The default
upgrader will fail inserting the value if the parameter doesn't exists.