added batch CRUD methods API, fixed nested objects serialization for better search support, fixed root app could be deleted through API, fixed a lot of bugs and added some tests