Implemented file storage for caps.
Separated file and cap servers.
Implemented cap actions.