Converted to using ArmA 3 functions library. Separated most (there might...

... be one or two that weren't) functions into their own files. Nothing appearing in RPT log, did a quick test in game and appears functional.

A quick test is probably not thorough enough, it will require a multiplayer test as well. Feel free to review the changes I have made, most of it has been moving functions from client.sqf into separate files and adding the function to CfgFunctions, I went with the TFAR tag. So functions are TFAR_fnc_XXX.