Add a weightedRandom Function
Added a random and weightedRandom Functions
Removed duplicate code
Fixed a typo
Fixed some new lines
Fixed some vars and doc
Added array random and weightedRandom functions
Merge pull request #529 from aaschmitz/master

Added random and weightedRandom for array elements
Added a Base64 Encode function
Added a Base64 Encode function
Fixed a jshint warning
Merge pull request #530 from aaschmitz/master

Added a Base64 Encode function
further code cleaning/re-shuffling around collision (to be closer from a SAT implementation philosophy)

- moved the `collideWithRectangle` out of the me.Rect code (this will
also make the default object a bit lighter, as me.Rect objet are used a
bit everywhere where this function is not used)
- create reusable response object when performing collision detection
(lowering GC)
README update (added a link to webchat for #IRC)
small documentation fix
extended the set of functions for `me.Vector2d`

This is to match required function for a SAT algorithm implementation
(e,g, SAT.js), but will be for sure useful as well for advanced
coordinates manipulation.
[#366] added a "toPolygon()' function to me.Rect

SAT are doing only Polygon to Polygon collision detection, so we'd
better use polyshape by default for collision body (this won't do it but
could help later, when passing rectangle object to the `body.addShape()`
function)
Resize the shape in Tiled instead of manually resizing
Create polygone based shape by default instead of rectangle
Added polygon (SAT) collision code

Not yet used, as the me.PolyShape object still misses some bits in order
to work (like `normal` points, that are calculated through the `recalc`
function in SAT.js)