Warning
Locking now just uses a resource. More general more awesome
Partial file storage now uses resoruces
Updated server, moved knowledge out of it