Merge pull request #7 from murrekatt/develop

More cleanup and simplification of OTServer
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.