Moved from Coveralls to Codecov.

Coveralls doesn't handle multiple CIs very well. It didn't merge Windows
and Linux test coverages. Codecov appears to handle this well.

New setup.py structure. Simplified travis and appveyor config files too.