Moving some misc utility code I made for Tornado
Moved and updated more in TornadoMisc and misc