Added license headers.
Moved out transaction number management into Transactor class.
Moved out main file logic into own class. stdin helpers came as a side product.
Minor if statement cleanup.
Fixed C-style const cast.
Merge pull request #8 from murrekatt/develop

Even more cleanup of the server