Fix issue #2221
upgrade promise dependency
Fix the API files
Fix issue #2221
less.registerStylesheets() promise

squash logs