Rewrote quay.js

Updated quay.js

- Added `use strict`
- Added project header
- Added version number to `Quay.VERSION`
- Added `Quay.setLogger()` to set a debug logger.
- Changed the way events are attached to allow support for IE.
- Set version number to `0.5.0`
- Removed redundant key names
- Re-factored code and renamed a most variables.