Fixed client security and removed insecure package

Also stopped all views being public