Simplify objectlib's API.Correct a recently introduced bug with resetting texture maps.
Initial commit