post receive for work request before sending work, free reqeusts at end
fix memory leaks
cast pointer to avoid compiler warnings
set next_proc to NULL with just one rank, and abort req for work early
Merge pull request #12 from adammoody/master

post receives before send, fix memory leaks