Force wrapping resource URIs

When resourece URIs becomes too large they extend beyond the containers of the page. Templates have been modified to force wrap the URI when it is necessary.

This solves the problem in issue #13