refactor extension in Rakefile to work with new extension API
document extension APIs, use methods to retrieve all extensions