Cleaned up utils.views to increase performance when fetching single objects from the database for a view. Fixed #1378.
Merge pull request #1379 from normanjaeckel/FixGetObject

Cleaned up utils.views (especially get_object() method).