Add method to ResourceService, rearrange frontend dirs a bit.