Modified courses/edit for instructor in no faculties

When instructors are created with no faculties, their list of
available instructors is empty. This causes a problem when the
course is edited (Eg. change the title). Since the list of instructors
would be empty, the list of selected instructors would also be empty.
This will cause the list of instructors in the course to be removed.

I have now fixed the problem by appending the course's instructors
to the beginning of the list of available instructors whether
the instructors are in the same faculties or not.
Fixed courses edit

A bug was found when user A edits the user B's profile if User A does
not have access to all of the courses user B is enrolled in. The problem
was user B would be unenrolled from the courses User A does not have
access to.

I have also copied the fix from dev for another problem which is
if all the courses are unselected, the user would not be unenrolled
from any of the courses.
Fixed courses edit for instructors and tutors

I have fixed unenrolling all courses for instructors and tutors
from courses edit similar to the fix for students. When tutors
are unenrolled using this method, they are also removed from
the groups they are in.
Fixed survey group member model tests

I have added the missing fixtures
Fixed reported bug in student index

The bug is events that are not released (release dates are in the
future) are placed in the expired section, when they should not be
displayed at all. The reason behind the bug is events in the above
situation are fulfills one of the filters requirements (no submissions
and date is before result_release_date_end.

To fix this bug I have added an extra condition which is the current
date and time has to also be after release_date_end for the event
to be placed in the expired section.

I have added an extra event to test this bug. The event is set to
be released "next" year on July 31st. Using the existing tests, we
can check that the bug is permanently fixed. The new event should not
appear in the expired array or any other events' arrays.
Release 3.0.8
Fixed Firefox issue with mixed eval scale weight

Replaced the dropdown menu with an input text area that can only accept
numeric values (character values will not affect the weighting).
Text Wrap for Survey Response and Timezone Fix

In this hotfix, a minor change was made to the multi-line survey
responses.  Before, the text would continue off the screen for as long as
the user's response.  Now, the text wraps around and stays within the
bounds of the screen.

In addition, the timezone fix added in the dev branch (commit
7825c55a6c4fe86dae93aa8ca2aac61dcc49f02b) was added here as the model test
case failed otherwise.  The fix checks to see if the user is in daylight
savings time or not.  If the user is not in daylight savings time, it adds
an hour (3600 seconds).
Fix the API logging message missing info

The username is stored in $user instead of $user['username']
Release 3.0.9
Switch default db credential from root to ipeer

As using root is not safe and most of people will use a separate
credential for the application
Merge branch 'master' into 3.1

Conflicts:
	app/config/core.php
	app/config/sql/ipeer_samples_data.sql
	app/controllers/users_controller.php
	app/models/user.php
	app/tests/cases/controllers/courses_controller.test.php
	app/tests/cases/controllers/home_controller.test.php
	app/tests/cases/models/survey_group_member.test.php
	app/webroot/js/evalviewer.js
	version.txt
Update to compatible with PHPWebDriver 1.12.0
Fix test and add instructor to run integration tests