Merge pull request #212 from dalkon/master

Bug fix
Remove boost_thread dependency and fix crash
Use libmysqlclient instead of libmysqlclient_r
Remove redundant includes (otpch is global).
More include cleanups
Remove libboost-thread-dev from Travis
Move OTSYS_TIME() to tools.h

This commit also removes all trailing whitespace from the source files.