Added iterator support for module backend

Added iterator support for module backend (now one can set iterator callback in struct module_backend_api_t).