Phpecc refactor

https://github.com/Bit-Wasp/bitcoin-lib-php/issues/22 Several changes in PHPECC required a refactor of bitcoinlib to account for this. Probably shouldn't have reorganized the code... But tests all pass again.