implemented missing method collect in RestCollectorPlugin; added test class; removed RestIteratorFactory class
declaring bean for RestCollectorPlugin
collector plugin for rest apis