Multiple changes.

- Added the overloaded adapt_func() function.
- Removed the overloads of for_eachn for std::function from manager.
- Added the apply member function to manager.
- Updated examples.