ox-beamer: Fix export snippets in sublists

* lisp/ox-beamer.el (org-beamer-item): Insert the export snippet right
  after the first \item, not all of them.

Thanks to Andreas Leha for reporting it.
Merge branch 'maint'
Fix `org-open-at-point' on planning lines

* lisp/org.el (org-open-at-point): Open timestamps on planning
  lines.  This is a regression introduced in fc9ce8.
org-element: Fix timestamps parsing in planning lines

* lisp/org-element.el (org-element-context): Fix timestamps parsing.
* testing/lisp/test-org-element.el (test-org-element/context): Add
  test.
Merge branch 'maint'

Conflicts:
	lisp/org-element.el
Revert "Fix `org-open-at-point' on planning lines"

This reverts commit 66f3ba38c2b08dea909d2bfdef7b9cd997e5b613.
org-element: Fix cache bug

* lisp/org-element.el (org-element-context): First initialize cache
  before retrieving data from it.
Ignore `org-open-at-point' when point is on white spaces

* lisp/org.el (org-open-at-point): Do not do anything when point is on
  white spaces after an object.
* testing/lisp/test-org.el (test-org/custom-id): Modify test.
Change `org-open-at-point' behaviour in footnote definitions

* lisp/org.el (org-open-at-point): In a footnote definition, return to
  footnote reference only when point is on the footnote label.
Fix `org-open-at-point' on nested objects

* lisp/org.el (org-open-at-point): On an unsupported object nested
  within another object, try to open the parent object.

This should correctly open the following link, with point on the
verbatim object:

  [[http://orgmode.org][=verbatim=]]
ox-latex: Allow customization of hyperrefsetup

* lisp/ox-latex.el (org-latex-hyperref-template): New variable.
(org-latex-with-hyperref): Remove variable.
(org-latex-template): Use new variable.
Fix `org-open-at-point' on tags

* lisp/org.el (org-open-at-point): Fix behaviour on tags.  Small
  refactoring.
Small docstring update

* lisp/org.el (org-open-at-point): Update documentation.
Tiny fixes

* lisp/org.el (org-open-at-point): Tiny fixes.