Added some code to emulate NES controllers.

Not nearly complete though, and it doesn't compile. Will fix shortly.wq