Use RefCell

Closes https://github.com/PistonDevelopers/current/issues/4