switched from checking cookie to database in function getRating()
Modified README. Added detail related to Ajax script
migrated Moodle data API to function getRtgDb()
migrated Moodle data API to function rtgstdyDb()
Fixed relative path in javascript
tidy up Moodle data API migration and original db connection code
Added function instance_delete(), to be overrided in the future
Update TODO list in README