Further improve speed of mime base64 encoding routines.
Base 64 decode is a little faster than libb64 on my AMD FX6100, and
a very slightly slower (a few percent) for encoding.  The speeds of
encoding and decoding are both approximately 4x faster than before
these changes.

Also optamize util.gettimeofday() and util.gettimemonotonic().
Merge pull request #122 from jsolman/master

Further improve speed of mime base64 encoding routines.
Squeeze a little more speed out of the base64_encode().

Switch the type of the array for the base64 output encoding to be
uint16_t[] instead of uint8_t[] and use a 16-bit counting index
instead of an incrementing uint16_t*. For some reason in the
encode function LuaJIT 2.0.2 optamizes this case using the array
index more effectively, and from the tests on my AMD FX6100 and my
laptop with an AMD A4 processor, the encode function on Windows
is about 2% faster than the libb64 encode (using binary available
from luapower.org). (Note: contrary to this example, in the
decode function using an incrementing uint8_t* pointer rather
than a counting index to the output bytes array is optamized
better by LuaJIT -- it would be interesting to look into this
further when I have the time to discover the reasons why the
jit compiler behaves the way it does in these examples.)
Merge pull request #123 from jsolman/master

Squeeze a little more speed out of the base64_encode().