Aleks branch

angularjs refactoring; 
api GetPosts refactoring; 
change api parameters