CDB-2936 loading extension inside load_functions
CDB-2936 Postgis installs its template which includes raster so no need to install the extension to each user. Removing the code
Have travis install cartodb extension
[TRAVIS] Fix reference to cartodb-postgresql extension
[TRAVIS] Install postgresql-server-dev-9.3

needed to build cartodb-postgresql
[TRAVIS] Install cartodb-postgresql as superuser
CDB-2936 Added version selection in load_functions call and rake
Merge branch 'CDB-2936' of https://github.com/CartoDB/cartodb into CDB-2936
[TRAVIS] Also install pg_schema_triggers
[TRAVIS] Reset CWD after installing cartodb-postgresql extension
Simplify load_cartodb_functions code

Have it fully run within a single transaction (single statement).
Drop all arguments, always figures out what to do on itself.
Installs schema_triggers when missing.
Hard-codes target extension version to '0.2.0dev' (to be changed later).

Add --trace to rake calls made by create_dev_user script
[TRAVIS] Install postgis as an extension in template_postgis
Set quota trigger for newly created user databases

Do this in setup_user rather than load_functions as it was done
before. Existing databases should already have the quota trigger
built, from the version of cartodbfication. If that's missing,
there's a special rake task to do just that.
Set quota _after_ loading functions, or CDB_SetUserQuota is missing

The rebuild_quota_trigger method was rewritten to support setting
quota even for databases that did not switch to "extension" mode yet
Fully qualify call to CDB_UserDataSize()
Do not forget to set quota triggers after loading functions from testsuite
Add optional database parameter to pool.close_connections!

Helps moving toward removing the need to brutally kill connections
(#267). Partially implements pull request #273.
Reset pooled connections to a user database after loading functions

This ensures all new sessions get the correct search_path defined.
Also reverts 56926dc4, which fully-qualified one of those calls.
Don't attempt to center the dialog if there's no upload tab
Run sql tests as superuser