move texture handling from Renderer to TextureManager
split application into passive server and active client
fix freeing sdl handled resources