Add layer attributes to remote service layers

Also recommit some changes to layer_detail page
A few bug fixes