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

some small fixes and adding SECcurve
@afk11 said he got it from here; https://bitcointalk.org/index.php?topic=56801.0 but that's all I know ...

He didn't have any tests for it except the Bitcoin related classes that are using it (which are tested) and I don't know enough about crypto to know what they're supposed to return.
I'll add tests to verify their output based on what they output now, we can ask him to verify it maybe.