proper error management CDB-2601
fixes public table + removed SQLViewAPI CDB-2601
fixes wrapped query when the sql is for write CDB-1602
fixed get geometry types from the query results
Merge remote-tracking branch 'origin/master' into CDB-2601
fixed table spec
Merge pull request #412 from CartoDB/CDB-2601

avoid to include geometries and fixes lot of problems realted to sql queries