Build on FreeBSD, and hopefully others.

Fall back to using /tmp as "secure" tmpdir - ideally it'll be a tmpfs on
a system with encrypted swap. Issue a preprocessor warning recommending
it.

Signed-off-by: Thomas Hurst <tom@hur.st>
Improve fallback shared_memory_dir().

Try SECURE_TMPDIR env variable, and fall back to TMPDIR or /tmp with a
warning and delay before proceeding so the user has a chance to ^C.

Signed-off-by: Thomas Hurst <tom@hur.st>
Fix build on DragonFlyBSD.

Signed-off-by: Thomas Hurst <tom@hur.st>
doc: make note of the ways 'edit' might put plaintext on disk

An editor may save some state in other directories, and on some
platforms there's no good equivalent of /dev/shm in all
configurations, so at least let people know to be wary of
interactive editing.

Signed-off-by: Bob Copeland <copeland@lastpass.com>
Merge branch 'master' of git://github.com/Freaky/lastpass-cli

Incorporate BSD build updates

Signed-off-by: Bob Copeland <copeland@lastpass.com>