Added explicit extension support, extension integration test and fixed Rakefile.