Auth: make mk_passwd work without Monkey internals.

This patch adds a few workarounds to make mk_passwd avoid Monkey
internals about memory allocations and string lines dependencies.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Auth: move mk_passwd code into tools/ for clean build

Signed-off-by: Eduardo Silva <edsiper@gmail.com>