PHP API library for mastery (http://www.mashery.com)