Refactored readingLength calculation.
Added getPostsByUser method.
Fixed bug in posts permissions.
Added test scaffhold.