Adding a callback to prefetch so we can wait for template compilation

Hello dan, eford, 

Please review the following commits I made in branch 'azulus-cleanup'.

9eccb57debb47ed1276e1e8e2097be9cea035cc4 (2013-03-29 13:56:27 -0700)
Adding a callback to prefetch()

R=dan
R=eford