Move extractNick() into the module.

It didn't make sense anymore to have it in Erebot_API as the Identity API
provides a more powerful alternative and this module was the only one that
required very basic processing.