First commit of RIFE cleanup and core classes to start rebuilding features for v2