Adding random and format functions to utils.js
Modyfing code that defines random and format to get it from utils.js instead
Remove the custom request util

Since it wasn't the cause of the memory leak, it'd cause unnecessary
maintenance to still include it.
Update booru to not use the custom request util
Removing usage of util.js from plugins/rehost.js
Also doing some minor changes for better error handling and reporting.