fixed layer creation
allow to share visualizations with others user layers when there are permissions
don't include twice the schema for a table in a layer
Merge branch 'CDB-2891' of github.com:CartoDB/cartodb into CDB-2891