A Multiscale Implementation Of Finite Element Methods For Nonlocal Models Of Mechanics And Diffusion