[Issue292] Add advertised and transient to TileLayer

This pull request contains a fix for #292.

Note that after merging the following pull request, also this pull request must be merged on GeoServer: https://github.com/geoserver/geoserver/pull/835