Help interacting with Membership module

I am developing a plugin that interacts with the Membership module and have a question on using the admin_url like you use in this module, specifically the levels. I want to write a function that will handle a page and action like you are doing with Membership levels. If you could help me or direct me to the function that handles the request and processes the page and action variables to create an editable form from the selected level.

Thanks!