Updated with code from drupal.org + added auto testing by Travis (see .travis.yml & travis-ci.org)

See results of testing here, all is ok: https://travis-ci.org/Staratel/simplenews