Move blog logic out of controller.
Move parameters to config
Merge pull request #27 from EvercodeLab/posts-service

Move blog logic out of controller.