REVIEW: Extract webresources api into discrete module

Bring (nearly all) webresources api together into simple discrete module.