Fix for Document version control

* Fallback for metadata display in Documents that have no versions due to being created before version control was implemented.

* Cleaned up som puts in helpers, controllers and in cuke steps