Bug 898877 - Prevent pages from getting stuck without the dynamic toolbar. r=Cwiiis

The problematic scenario is when the page is exactly the height of the screen
(with dynamic toolbar not visible). In this case, the scrollable() function in
Axis.java returns false on the vertical axis, and so the JavaPanZoomController
never does any scrolling. This in turns means that the scrollBy code in
LayerMarginsAnimator never gets to run, so you can never drag the toolbar back
into being visible. The patch ensures that scrollable() returns true when some
or all of the margins are not visible, ensuring that in these scenarios the
user can still scroll the toolbar back onto the screen. This patch also adds
some comments/asserts to verify the new code is threadsafe.
Bug 898877 - Ensure that viewport resizing behaviour due to dynamic toolbar is consistent. r=Cwiiis

In browser.js were two pieces of code that determined whether or not the CSS viewport
size should include the margins. These two pieces of code were inconsistent in that
one used rounding while the other used a fuzz. Also, one of them subtracted gViewportMargins
from gScreenHeight while the other added them. This patch makes the two pieces of code
consistent, and updates them to use a fuzz so that the CSS viewport is enlarged only
when dealing with pages that are equal to or larger than the screen (with the toolbar hidden).
Bug 755412 - Debugging protocol server should drop connection if packet framing is bad. r=past, r=jimb
Bug 892942 - Remove www., m. and mobile. from URLs in Reader Mode. r=margaret
Bug 894546 - Histograms for pdf.js. r=froydnj
[to land] Bug 898485 - [app manager] Implement an abstract connection manager
[to land] Bug 895360 - [app manager] Device meta data actor.
[to land] Bug 901517 - Observable Object: use EventEmitter.decorate and fix array issue
[to land] Bug 901521 - [app manager] implement a template mechanism based on stores
[to land] Bug 901519 - [app manager] data store for connections
[to land] Bug 901520 - [app manager] data store for device
[to land] Bug 902874 - [app manager] data store for webapps
devtools:* urls
device.xhtml and connection-footer.xhtml
about:app-manager
Simulator integration
Bug 901917 - [app manager] expose the gaia settings API