update to make ci servers work and rails 4 upgrade

also:
- ruby 1.9.3 fix

Squashed commit of the following:

commit db4095646dd594a0d4ec2bbaa4f588ec6ff5468f
Author: William Harris <wharris@driveless.co>
Date:   Sun Nov 17 13:52:24 2013 -0500

    fix ip address error catching for ruby 1.9.3

    discussion here

    http://meta.discourse.org/t/tests-fail-in-rails-3-mode-on-ruby-1-9-3-with-v0-9-7-4/

commit ad1363d24b95c79301c65b8ba11a844d82be7392
Author: William Harris <wharris@driveless.co>
Date:   Sat Nov 16 22:37:46 2013 -0500

    missed a spot from the last commit

commit 292654739cf547922e291dd9c55d1a7446daba1e
Author: William Harris <wharris@driveless.co>
Date:   Sat Nov 16 22:22:19 2013 -0500

    update to rails4 since discourse team is dropping

    rails3 support.

    re:

    http://meta.discourse.org/t/tests-fail-in-rails-3-mode-on-ruby-1-9-3-with-v0-9-7-4/

commit b1aac3b42f839f5ab1afccc7867a9934b67a46a9
Author: William Harris <wharris@driveless.co>
Date:   Sat Nov 16 18:27:30 2013 -0500

    so all the test fail in RUBYOPT=-Ku mode

    which obviously is not what we want lol

    switching to adding that magic comment

commit 58be1aa77ec542c81075c5f51d63e23c09befc7e
Author: William Harris <wharris@driveless.co>
Date:   Sat Nov 16 18:07:41 2013 -0500

    address magic encoding issues with ruby 1.9.3

    re:

    http://stackoverflow.com/a/8943483/511710

commit 92c01e20934472889f668c3012afc826b7afa44d
Author: William Harris <wharris@driveless.co>
Date:   Sat Nov 16 16:57:57 2013 -0500

    update shippabble db conf