Misc engine updates: added system file for encapsulating enviroment specific functions, and random number skeleton