DEVSUPPORT-1169: Fixes environment and password issues

Squashed commit of the following:

commit 76cfe9a92a02afb3c9e9e5c29bee92ca2174fcd2
Author: Ilya Anisimoff <ilya@intersect.org.au>
Date:   Tue Dec 10 16:49:05 2013 +1100

    MISC: Cleaning up comments, uncomments new_secret

commit 3a93b2b407d3a1b67699315a0c179503297e099f
Author: Ilya Anisimoff <ilya@intersect.org.au>
Date:   Tue Dec 10 16:43:21 2013 +1100

    MISC: Removes spurious bracket

commit 04bb09ce9b2d7229d5b8ca1328eaf8651e6f274d
Author: Ilya Anisimoff <ilya@intersect.org.au>
Date:   Tue Dec 10 16:41:27 2013 +1100

    MISC: Updates migrate task to use RAILS_ENV

commit 4cc648a773edeb1cabdbd32f04733c234348a816
Author: Ilya Anisimoff <ilya@intersect.org.au>
Date:   Tue Dec 10 16:30:41 2013 +1100

    MISC: Another attempt to update stage variable

commit 87e17536507bfa5903f0eb149b30e9ef9bc3361d
Author: Ilya Anisimoff <ilya@intersect.org.au>
Date:   Tue Dec 10 16:09:14 2013 +1100

    MISC: Update password in all stages

commit bb71c77d3844ffdf1684cb480f77911ed31b38a7
Author: Ilya Anisimoff <ilya@intersect.org.au>
Date:   Tue Dec 10 15:00:32 2013 +1100

    MISC: Fixex password when not deploying to production
Merge branch 'pw_fix' of github.com:IntersectAustralia/nedb into pw_fix