Add required functions for the completion library

adds in the required functions and libraries so that it properly triggers the completion api when viewing the resource.
This may also need to be added into the dev branch

Ref issue #34