fixed the loader
Merge branch '2.1' of github.com:CartoDB/cartodb.js into 2.1
checkings before remove layer
fixed legend specs
added leaflet spec
included index in leaflet layers
sort layers depending on the order
check if the model added is valid in add_related_model