refactor Removing intermediate variable when calling Aria.classDefinition.

Some files are using an intermediate variable before calling
Aria.classDefinition or Aria.tplScriptDefinition.
This is useless, and can prevent some automatic tools from working on
those files.
This commit removes the intermediate variable, which makes Aria Templates
files more consistent.

Close #729.
fix #728 Headers should not be shared between request handler instances

JSONRequestHandler used to have a headers which were implicitly static,
causing issues when modifying those headers with
RequestHandler#getHeaders().
fix #727 Callback failure when submitting a JSON request should be handled in the framework.

Close #731
refactor Rename some tests

Also fix a minor issue with MaximizableDialogTest which had template test
env set incorrectly.

Close #684.
fix #722 PageEngine animation CSS rules are added multiple times in the DOM
refactor TemplateInheritanceTest

Close #719.
fix #727 Refresh manager not resumed after an exception in a module controller

Close #735
feat #682 replace `contentMacro` with `macro` in @aria:Dialog

To make API more consistent, let `macro` in @aria:Dialog be a synonym for
`contentMacro`.

`contentMacro` is deprecated from now on.

Close #682. Close #687.
feat #736 Animations for HTML elements

Close #736
fix #737 `childElementCount` not supported in IE8-
fix #738 IE9+ opacity issue
feat #739 extract css.Units util

Extract existing unit manipulation tool.

Add some new methods for reverse direction calculations and also some
helper methods needed for IE8- polyfill of
`getComputedStyle(width|height)`.
They're all in this class instead of `utils.Dom` to avoid circular dependencies.

Also fix some small issues:
- `font-size` -> `fontSize` in a check
- `fontSize` returned can be non-pixel in IE; taken into consideration now
fix #739 consider borders/paddings in getStyle(width|height) in IE
v1.4.10
feat #742 Google Map is now activated over ssl when needed, regardless of the user

The feature is available for all users, from Google Map V3 : https://developers.google.com/maps/faq#ssl

Close #742
fix #725 Improving test stability

test.aria.touch.widgets.dialog.events.DialogAnimationsTestCase and
test.aria.widgets.container.tooltip.TooltipTestCase were randomly
failing because of timeouts (which were sometimes too small).
This commit replaces the timeouts with calls to waitFor.

Also, renames some tests which had classpath parts starting from
uppercase.

Close #741
refactor Remove dead code

Remove variables that are created but never used (in some cases, remove
the variable entirely; in some case, just call the method without storing
the result).

Add JSHint build-time check (for `src` files only) for declared but unused vars.

Also, fixes a minor issue that landed in
https://github.com/ariatemplates/ariatemplates/commit/107507a30d0407e46bcbf6dea3cf31ee28c43928#commitcomment-4166998

Close #710. Close #743.
feat #745 enable `getComputedStyle` for IE9+

Close #745.
refactor some positioning/viewport calculations

1) don't recalculate the viewport size in `onViewportResized` in Dialog,
take it from event data
2) round to full pixels in `utils.Dom.calculatePosition`
(`getBoundingClientRect` returns floats)

Close #677.
feat #714 custom padding for the `pad` modifier

Now the `pad` modifier accepts third parameter which is the padding
string. By default it's `&nbsp;` if not provided.

Close #714. Close #724.