plugin enable issues

This corrects the code that stores the correct plugin priority into the
plugin's enable option. It also documents what the value is set to.

Also corrects some apparent search/replace errors in the functioncalls
on enableExtension