Fix builds on Mac OS X.

Thanks to @kode54 for his bug reports and assistance.
Fix debug builds on Windows.
Push a ref that got downgraded.
Handle events better, get ready for save support.

  * Move window/GUI logic to main application.
  * Detect window close requests.
  * Allow plugins to gracefully shutdown.
Add EEPROM load/save support.

  * Thanks to @arbingordon for patches/work.
Update README.md
Merge pull request #5 from scizzorz/master

Update README.md
Add support for glfw3.

Patch courtesy of Grachev from #n64dev.
Allow the window to be resized.

Patch courtesy of Grachev from #n64dev.
Patch EEPROM, add preliminary SRAM support.
Change command line argument order.

As suggested by Gravhev from #n64dev, change command line order
so that it matches other, standard programs.