Add render module.
Remove out dated code.
Fix test cases. Make texture loading lazy.