Resolved middleware double-execution issue by populating framework global
"middleware" with func values, rather than func pointers. (at least I
think that's what I did...)

Signed-off-by: David Arbuckle <dintlu@gmail.com>