Fix some issues with protocol. Remove unneeded security permissions from manifest.