Add coveralls.io service for code coverage.

- Modify the luacov report.lua for generating a json file which is fitting
the coveralls.io format.
- Move some test scripts from .travis.yml to tests/*.sh .

Signed-off-by: Xiongfei(Alex) Guo <xfguo@credosemi.com>