Add debug log to api library, update winston logger, bump node version.