No more extracting coordinates to the window.
Started refactoring away from prototypes:

* Created main extensions module that provides an object $ext with what should be standard functions;
* Replaced all 'each' calls by $ext.each calls.
Replaced all copy with $ext.copy.
Replaced all .merge with $ext.merge.
Got rid of prototype extensions for Objects.
Got rid of prototype extensions of Arrays.