Moodle 2.7 updates

- Updates deprecated function calls.

- Adds setType() statments to form definitions (missed at last upgrade).

- Update version to v1.1.8

- Adds GPL header.

- Declares dependency on UES (version.php).
Merge pull request #57 from lsuits/27readiness

Moodle 2.7 updates