A Framework for Configuration and Assembly of Routing Protocols for Wireless Ad Hoc Networks