Move votedetail helper methods to lib/votedetail

This avoids creating import cycles
Use cached votedetail_dict in proposal detail view
Invalidate memcache when instance is changed
Merge pull request #491 from liqd/feature-memoize-votedetail

Feature memoize votedetail