Added code to load dynamic libraries

This code will allow us to load dynamic libraries written by the user.
We just need to define the api functions