more work on resource functionality, basic mockSocket tests working

huzzah