Some improvements:

 * Always compile the latest ruby-lang.org's ruby version
 * Always download the latest phantomjs from Google Code
 * Install and configure Postgres for the current user