Allowing replacement of specs

Fixed bug in addMethod to not look for method on api which doesn’t
exist. Returning from addMethod if replacing existing operation.
Replacing operation in array if matching method exists rather than
appending duplicate operations for the same method/path.