refactored some angular code, repaired webapi project, implemented persisting posts in angular