A server-side restful system for secure document handling