common: Avoid using require to read JSON file key.

`require` is not working well with relative paths.
common: add test for conametion with keyFilePath.
Merge pull request #1 from stephenplusplus/readkeyfile

common: add test for connection with keyFilePath.
Merge pull request #100 from rakyll/readkeyfile

common: Avoid using require to read JSON file key