Fix compile warnings: Unused, assignment to free var, ...

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Fix compile warnings in weechat-relay.el.

Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de>
Move tests to their own file

Signed-off-by: Moritz Ulrich <ulrich.moritz@googlemail.com>