Lower APM + Code Cleanup + Bugfixes

-Fix errors as listed by JSHint
-Reduce number of commands sent (APM).
-Stop the AI from making too many errors.
-Resting position is now between closest pair of ally/enemy buildings.
-For some commands resend the same command as the previous
-Remove erroneous block prevention behaviour
-Adjust hesitation for enemy towers
-Adjust internal gold value as gold is spent with commands