Extract webresources api into discrete module