REST API for posts data manipulation

Added REST API for posts manipulation. Added some system tests.