Batch rest requests, remove packet manager, refactoring