Add missing string for mod/equella:manage cap and missing setType calls
db/upgrade.php: Use recordset to handle large amounts of equella resources

Additionally, only clear the course cache rather than rebuild it.
Courses with more than one EQUELLA resource would get this called multiple
times. Rebuilding the course cache for a large amount of courses will take
a LONG time if theres enough of them. Its better to simply clear the cache
and just let it be regenerated the next time a user needs the course.
Merge pull request #18 from aolley/nsfixes

A couple fixes for debug warnings and improvement to upgrade script