Factor fods and its base function out to ods.h/cpp and use it in HardHook as well as lib functionality. This also fixes previous divergence between the two ods functions.
cloneCode function followed pointer chains without making sure to get read privileges to the corresponding areas. This patch fixes that and makes sure setup and cloneCode function do not rely on each other for getting read privileges .