Refactor page integration and fixed various bugs

* Integration now hides the sidebar (instead of just making
  it very narrow). Optional CSS3 transition.
  A link back to the Main Page is provided in the tab bar as a
  way out.

* CSS is now scoped to the RTRC page so that it can be loaded
  through a gadget on all pages and not mess up regular pages.

* Action buttons, toggle buttons and "Help" and "My patrol log"
  links now have a more consistent styling (solid colour that is
  brighter on-hover, wider padding area, pointer cursor).

* Removed various redundant html wrappers.

* Removed unused css rules.

* Removed unnecessary use of "!important".
Checkbox Switch
Adopt checkbox switch
Adopt checkbox switch
Misc clean up

- Make currentDiffRcid local instead of global
- Make krRTRC_TipTime local instead of global
- Removed commented out code and move rctitles comment
- krEncodeEntities -> mw.html.escape
Use checked property for checkboxes instead of value="on"
permalink: Prettify title query
Misc clean up

- Rename krGetUrlParam to getParamValue
- Spacing
- Optimise selector
Rename krEmpty to isEmpty
Fix AutoDiff regression
Alternate String#ucFirst implementation
Misc clean up:

Patrol action:
- Change format from XML to JSON for the API request
- Use Promise pattern for $.ajax
- Use text() instead of html() for the message
- Remove a few mw.log calls

Help icon / rcuser:
- Avoid document-wide live for simple click handler.
Misc clean up:

- Remove a few mw.log calls
- Remove redundant closure
- Remove useless .live()
- Don't query #krRTRC_Tip twice
Add <label> around Order radio buttons for usability

Makes the labels a click target to toggle the radio buttons.
Misc clean up

- Wrap label around input field where possible
- Drop redundant "for" attributes
- Fix misaligned <select> element
Misc clean up

- Wrap label around input field where possible
- Drop redundant "for" attributes
- Fix misaligned <select> element
- Remove redundant #krRTRC_RCForm wrap
- Use preventDefault instead of return false
Misc clean up

* Wrap label around input field where possible
* Drop redundant "for" attributes
* Fix misaligned <select> element
* Remove redundant #krRTRC_RCForm wrap
* Use preventDefault instead of return false
settings: Fix gap between lines

Increase length of setting separators to reach the horizontal
line below
Clean up HTML

* Remove redundant value=""
* Use selected and checked as HTML5-style boolean attributes
tip: Get reference at parse instead of selecting later