Created basic Container and Rectangle classes
Added mode switching method and some todo comments
Added margin as attibute of a container
Adding 1 window works.

A window can now be created in the new datastructure.
Small formatting updates to the code.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
Adding of windows works again.
Added removing windows.
Allowed for grabbing of keys for AirWM

Took a while before I realized the exact method to grab the keys with
the xlib library. Found usage at:
https://github.com/knarf-se/yawm.js/blob/f498e1ca76e4bb12aa14801eadd180486444edfc/yawm.js
and consulted `node-x11/lib/corereqs.js`.  Added all the event masks
given in the x11-lib. The eventmasks not needed can be uncommented
later.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
Make airwm.js tabspace independent.
KeyPress event handling system restructure.

Restructured the way KeyPress events are handled. Due to a small
mis-identification of a field in node x11-lib it was overseen that
'buttons' actually represents modifiers. New structure uses this field
to identify the modifier used for the key which was pressed.

Signed-off-by: Martin Jorn Rogalla <martin@martinrogalla.com>
Fix indentation.
Remove old container.js file.
Add some comments to objects.
Merge pull request #14 from AirWM/newDatastructure

New data structure