Authentication for networks

Closes #127.

Cleaned up the code a bit more and added options to select authentication service and command.
Authentication service must be set in configuration, so the user doesn't accidentally send passwords where they shouldn't be sent...