Cleanup a bit
Update to Tii V2
Fix availability check for Moodle 2.7