Properly fix exporting of classes into Base.exports.
Minor code clean ups.
Merge git://github.com/paperjs/paper.js