Moving addSignatures out of transactionbuilder
Created by: mtlynch
Creating a separate file for the addSignatures function and making the signature adding function a function pointer in transactionBuilder. This will allow us to more easily test transactionBuilder, as the complex logic of addSignatures can be mocked out.
This also adds a very limited unit test for addSignatures.