Implemented simple custom handler

Noticed infinite loop problem with fifos, the 'sort' program, and small numbers of frames
eg.  ./virtmem 5 1 fifo|2fifo|custom sort