Fix example application to go through RouteInput
Add different handling for control vs data traffic

This requires adding a control bit to the packet header and
adding back the old code for handling normal dataplane traffic.
Minor cleanups for application code