KDM review of correct_detect

Many changes to ts.manipulate.correct_detect
- Fix line length and misc style stuff
- Add docstring to track review
add fixed travis config

Several commits to fix travis config

Try fixing travisci builds

Just copy the site travis scipy across

Futher attempts to fix travis

Fix cython in travis CI

Seem to have fixed travis

Copy all apt-get installed files across in travis

Fix copy ubuntu packages properly in travis ci

add travis caching of virtualenv

install matplotlib dependencies

Try fixing dateutil setup

add fixed travis config
Bugfixes and comments for broken tests