Scripts/Command: Add a mutehistory command (Based off of ban history)

Decided I would make a command and learn a bit of TC coding and though a mutehistory command would be useful.

This edits the mute command and inserts into table `account_muted` all the data that is used to mute. Account id, mute time, mute date, muted by, and mute reason. 

Comments on what i could do better and such are welcome. Also any ideas for commands i would be happy to make them!

locatime is not threadsafe, use localtime_r instead