fixed encoding problems in service
Created generic ResourceCollection
created plan resource

also added basic tests