docs: Replace usernames with references to $HOME

Instead of leaving our own users in doc references, replace
/home/$USER to simply $HOME.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.runner: Fix typo in test stream

We're looking to replace `stderr`, not `sterr`.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #306 from lmr/fix_user_references_docs

docs: Replace usernames with references to $HOME
avocado: Mass import cleanup

Make non standard python modules to be imported after
standard ones, also respect lines between imports and
the rest of the code. Also, remove unused imports.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #307 from lmr/refactor-cleanups

Refactor cleanups
avocado: Remove references to /var/tmp/avocado

This probably won't work for multi-users and/or
if /var/tmp/avocado exists before avocado is run
for the first time (with different permissions from
a different user). It's also probably a security
issue: a malicious user could create a /var/tmp/avocado
symlink pointing to /home/someone/important-dir.

This patch removes references to /var/tmp/avocado,
fixing this important security bug.

Recommended reading:

https://kurt.seifried.org/2012/03/14/creating-temporary-files-securely/
http://www.linuxsecurity.com/content/view/115462/151/

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>