add html entity quoting
only add content if it's not null
fix typo in refers insertion code
use gpg for symmetric encryption, not home grown format

Add pages for generating a GPG dir and shared keys. Move shared keys
into database.

Allow up to 3 layers of GPG for any content:
signature
symmetric encryption
pubkey encryption
remove unused argument to getUsername
perform logging in shared query code on error
return the key id used to sign the data
display signing key and whether it was verified
allow for null username argument
explicityly limit primary key to sign and subkey to encryption
remove old aes key function
add ability to see own public key
add hardcoded section for networks
remove outdated comments