In addition, I haven't seen this project mentioned yet. On sourceforge take a look for cbq.init. It should be applicable to the traffic shaping aspect of your project.