Organized I/O. Made stuff more generical. Still a lot of work.

Changelog:
 - State:
  o Deals with Input/Output operations.
  o Has an ordered table with all the information the player might need.
  o Gotta add settings.__index.
 - Clean up:
  o Stuff is much more generical as in less hard-coding.
  o There is much to clean, especially in main.lua.
  o Basically worked on state.lua.

TO DO:
 - Add settings.__index.
 - Clean some more.
 - Make stuff less hard-coded.