Fixes #148

Return contents of <component> rather than the <component> itself.
Removed unused variable $f.
Merge pull request #156 from jesusbagpuss/patch-4

Fixes #148
Merge pull request #157 from jesusbagpuss/patch-5

Removed unused variable $f.
Merge branch 'master' of https://github.com/eprints/eprints into xhtml_namespaces