Added locks and dummy thread functions. Also moved the delete's around
so they are efficently used for when things go wrong
Moved the loading functions to its own cpp file. The use for this is
that thread function can be kept in its own file. So the main program
is very less clutered
Fuck yea, three threads that do fuck all but they do it together as one.
Bite my shiny metal ASS!
Go knows what I was thinking, I was applying read and write locks on
two seperate locks. Which is not going to work. So changed the Lock
class to take lockType to the lock() function rather than its construct.

Also added pthread_mutexattr_t initilization to throw errors on double
locks. With pthread_rwlockattr_t changed the default option to be shared
instead.

You cant combine two locks to respect each other, and the test was
looking for this hense why the random errors. This change fixes #12
Updated Vehicle to use transform as pure virtual, so Vehicle derived
classes can implement this value. Also added a transform(std::queue)
version so the threaded server and the controller thread can talk to
each other.

Updated therads to change dashee::Exit for a clean exit.

ServoDummy now memsets the buffer in its contructor, was looking at
memleaks on valgrind to try to eval this. Need to investigate further.
servod.cpp now has the main loop commented out, I just need to get a
controller class working before I am a 100% on removing the code
Server now has a function which copies the inclass buffer to a given
queue by calling addBufferTo.

Vehicle now tests the transform function to make sure all is well

Threads implemente the new addBufferTo function in the server thread,
The server thread is also responsible for trying to keep the size of the
buffer low
Thereds now return the value of call to pthread_join. Needed to add
tests for these.

Changed reinterprint_casts to static not sure Why I was doing that in
the first place. But it is fixed
Removed the old while loop
Moved delete down below so the reload data can be reimplemeneted
Merge pull request #14 from dashee-bot/automation

Automation tested and works