Changes to fetch context methods
http://docs.moodle.org/dev/Access_API#Context_fetching
Oops forgot to add module.js to repo, doing it now