add SDL_version APIs
render.rs: change bool return type to Result
add Renderer::read_pixels, Texture::lock, Texture::unlock.
Merge pull request #77 from andelf/refactor-texture-and-pixelformat

Implement Renderer::read_pixels, Texture::lock, Texture::unlock.