Add a function injector

Hello @kylehardgrave, 

Please review the following commits I made in branch 'nick-inject'.

ea1a24eef2662ea91b685226a48feec385f02889 (2013-08-15 13:45:17 -0400)
Add a function injector


R=@kylehardgrave