Added unit tests for code_executor module as well as updated the module to return the exit code of scripts executed.
Basic refactoring. Changed some variable names to make the code more readable.
Minor formatting updates.
Stubbing out some tests that I don't think I can make. Will revisit soon.
Updated to add res_dir to the returned test data.
Updated instantiation of code_generator to take the test (preview) option.
Created a test stub. Eventually itll be a real test...
Committing this stub so that I dont lose my place later. Its been sitting on my machine for a while...
Broke up the big nasty generate method into smaller sub methods so that I can more easily test it. The thing is, now I have to create test data and such to continue. This commit works, but it still needs to be cleaned up a bit.