Allow using mapnik tokens in SQL queries

The code replaces the tokens for the purpose of sending the query
to the SQL api. Tokens are retained when interfacing to tiler.

See also https://github.com/CartoDB/cartodb.js/pull/44 as both are needed for you to be able to use tokens via UI