minor refactoring and adds test for posting lists
adds ability to post lists of resources