Added a keepalive field to nodes (no current use - for #4)

Signed-off-by: marcanpilami <marsu_pilami@msn.com>
Refactored mail, now allows many parameters. Fixes #33