Improve handling of popup menus.

* Work around PopupWindow's leaking of listeners into the ViewRoot VTO
  when the anchor view is detached before the popup is dismissed.
* Apply similar changes to MenuPopupHelper. This also means that support for
  OnAttachStateChangeListener is not required for correct operation of the
  popup window anymore. OnAttachStateChangeListener is still used in case
  the popup anchor view is not attached when the popup is shown, even though
  this seems unlikely to happen in practice as positioning of the popup is
  pretty meaningless in that case. It would be possible to remove the entire
  OnAttachStateChangeListener shim as a second step.
* Included PopupMenu from AOSP. Technically it's not part of the ActionBar,
  but ABS uses popup menus internally and all the plumbing and resources are
  already in place.
CapitalizingButton is now "textAllCaps"-aware on pre-ICS
Test case for issue #969
Update travis conf for working with asdk r22 and gradle
Stop using BuildConfig.DEBUG for log toggles.

Apparently people don't like debug logs that automatically turn off when you make a release. Who knew?

Closes #948.
Merge branch 'dev' of https://github.com/JakeWharton/ActionBarSherlock into dev

Conflicts:
	actionbarsherlock/src/com/actionbarsherlock/app/SherlockFragmentActivity.java
Mention the 'library' folder is now called 'actionbarsherlock'.

Closes #921.
Merge branch 'dev' of https://github.com/Prototik/ActionBarSherlock into Prototik-dev

Conflicts:
	build.gradle
Use 'sw' and 'w' qualifiers on ICS+ only.
Things...
Update docs to reflect behavior.
Merge pull request #970 from alexander-mironov/dev

Test case for issue #969
Merge branch 'textAllCapsFix' of https://github.com/alexander-mironov/ActionBarSherlock into alexander-mironov-textAllCapsFix
Closed #969.
Merge branch 'popupmenu' of https://github.com/ksperling/ActionBarSherlock into ksperling-popupmenu
Remove PopupMenu.