Remove unused functions; change to lager.

Remove a series of unused functions, and change io:format calls to use
lager.  Default to the lager_console_backend.