resolving some issues so that Bitcoin-lib-php can use phpecc as a dependancy

some small fixes and adding SECcurve
Yes. LogicException makes sense here. I cant think of any semantic reason why we'd need our own exceptions in these instances.