Changed the name to resources from resource so that all file names are plural.

As the name says, changed from resource.erl to resources.erl and changed the dispatch to mimick this change. Also changed resource_test to resoures_test.