Feature/encrypt documents

don't merge yet. Still need to update proxy and browser client

Making this PR for early review