Adding --coverage option to test runs.
Adding coveralls push to travis config.
Fixed bash errors in travis config.
Merge pull request #1008 from rhyolight/add-coveralls-2

Adds coveralls support in Travis.