Add functions to get logs as plain text

Extract them from the HTML formatted ones.
WebUI: Add commands to get the logs

New GET methods:
 * command/getLog
 * command/getBanLog