Implemented angular, units/threads/post methods work via angular's ajax, updated populate script