Fix Crafty.math.randomNumber documentation
Merge pull request #618 from potomak/feature/fix-math-documentation

Fix Crafty.math.randomNumber documentation
Make "Text" work better with canvas

The major change is that a "Canvas, Text" entity will automatically resize when either its font or text are changed.
This is accomplished by using measureText() to get the width, and estimating the font size in pixels for the height.
Currently the width is adjusted *after* drawing, and the height not at all.  This often caused the text to be rendered with portions cut-off.

Text is now also drawn at the (x,y) coordinate of the entity, with the baseline set to "top".  Previously text was translated to the bottom left corner of the entity, resulting in descenders getting cut-off.

Tests were added for the new resizing feature.
Merge pull request #620 from starwed/text-resize

Make "Text" work better with canvas
Fix bugs in stage.html centerOn

This fixes a couple of bugs in the centerOn tests.
- Expected values of viewport x/y will be integers
- clampToEntities needs to be turned off for one of the tests to work

Both of theses issues were invisible in phantomJS due to the default viewport size.
Merge pull request #623 from starwed/stage-centeron

Fix bugs in stage.html centerOn
Bug Fix: Don't clobber background CSS property for the Image component

Expected: when adding a CSS property to an image entity, it should apply the CSS to the image element

Example: Crafty.e("2D, DOM, Image").image("bg.png").css({"background-size": "contain"});

Currently: background-size would not be added to the image element because the general background property wouldn't allow for specific background property
Merge pull request #624 from glaksmono/develop

Bug Fix: Don't clobber background CSS property for the Image component
Make "Text" work better with canvas

The major change is that a "Canvas, Text" entity will automatically resize when either its font or text are changed.
This is accomplished by using measureText() to get the width, and estimating the font size in pixels for the height.
Currently the width is adjusted *after* drawing, and the height not at all.  This often caused the text to be rendered with portions cut-off.

Text is now also drawn at the (x,y) coordinate of the entity, with the baseline set to "top".  Previously text was translated to the bottom left corner of the entity, resulting in descenders getting cut-off.

Tests were added for the new resizing feature.
(cherry picked from commit 412ef0b3d350185ddee1407992d918e80ce7d046)
Reversed compare in setChannels, corrected variable reference. Also fixed off-by-one creating channels
Workaround chrome sound bug, add tests

- Made changes to sound.js, to workaround bug 280417 in Chrome
- Working unit tests for sound, using fake sound objects
Fix tweening of same properties by different entities, add tests
(cherry picked from commit e36132ef26134bcf9b09e246768eb14d579254f9)
Fix bug in steptype()

There were two bugs: the function argument shadowed the mode variable, and the semifixed mode would never actually be set.
(cherry picked from commit dffb1b49172bad8b2532a19605e588be7ec30f92)
Merge branch 'jamespic-chrome-workaround' into testing

Conflicts:
	Gruntfile.js
Bump version to 0.6.0
(cherry picked from commit fbcdcc2bc5ae527b2e4caee00ea3aadb4fb4546c)