Renamed API Endpoint button.
If resource type is API, the get capabilities request is added to the url of the button. The resource url remains the same as before.
Button on resource page now links to WFS/WMS get capabilities if the resource format is WFS/WMS.
Removed reference to resource_actions_inner block not present in CKAN v 2.0.x
Corrected error in template.