parse-integer: add support for junk-allowed key parameter
Merge pull request #13 from abeaumont/parse-integer-fix

parse-integer: add support for junk-allowed key parameter