Parameterize some math functions.
Scissor testing improvements and WebGL support.
Put a border around NPOT textures for crisper edges.