Add main-asyncrequest.js

Split off main.js, integrating formerly-separate documentation.