fix errors
fix cache and templates
added thumbnails for post-images
Added simple redis view counters. About redis options mode persistence see http://redis.io/topics/persistence