Finished shader/program implementation. Added resource module. Minor refactorings