chore(release): Improved version control in release script as well as error handling.

TODOs:
- [x] Fix JSON formatting for composer.json (pretty-print + no-slashes)

- [x] Add `composer validate` check to Travis (not release.php), so we can make sure composer is always good to go.

- [x] Add Travis support for 1.9 and 1.x