fixed handling of URLs with @ and : symbols in password
use name of tile layer in tile authorization

fixes issues when the requested layer name differs from the
actual layer name (e.g. test_EPSG900913 -> test)