Merge branch 'master', remote-tracking branch 'remotes/upstream/master'

* remotes/upstream/master:
  prepare for using a master theme_init()
  provide theme_init() functions
  rev updates
  API: API is now enhanced. mentions, repeat and destroy now works.
  "vier": Some design stuff
  "vier": Bookmarks now look better.
  API: template for test function added
  The "vier"-theme is now working again. But there is still work needed
  New script that checks if a script is running
  poller: An optional lockfile is used to check if the poller is already running
  Several improvements

* master:
added exceptions to dba class
added exception handling to index.php, please mind that there is no
recovery at the moment
added transactions to db update. Please mind that they might not be
supported by db table engines. 
added admin email on failed updates

added german translation for admin email
made exceptions from the db optional
set address for updae mails correctly
fixed some typos
Merge branch 'master' of https://github.com/friendica/friendica
source beautifarming to make review easier
Merge branch 'master' of https://github.com/friendica/friendica
Rename gravatar_img() more generic to avatar_img().

I would like to extend the Gravatar support to also use Libravatar, a decentralized avatar service.
First step to extract Gravatar from core and put it into its own plugin. Later the Libravatar plugin can be done, too as a plugin.
Remove Gravatar from core and add new hook avatar_lookup.

This patch removes all occurances of Gravatar from friendica's core and adds a new hook "avatar_lookup" inside the function avatar_img($email) where the new *avatar-plugins should hook in.
I haven't touched the language files yet. Are they updated automatically somehow?
bbcode toolbar attached to the comment text field
minor css-fixes
Merge pull request #220 from tomtom84/master

fixes in diabook-themes
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'

* remotes/upstream/master:
  bbcode toolbar attached to the comment text field minor css-fixes
  diabook-themes: small icon fix
  diabook-nav-icons with gradient
  use local_user for tag completion if available. See bug #368
  more sane defaults datetime_convert
  fix empty string timezone
  Some new German translations
  send zrl after dfrn_request homecoming for manual entries
  fix to wall_upload photos default permissions to use cid rather than uid.
  fixed z-index of youtube-vids  fixed bug to hide right_side

* master:
Merge pull request #218 from campino/master

db errors and update error mail
rev update
Merge branch 'pull'
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'

* remotes/upstream/master:
  rev update
  source beautifarming to make review easier
  fixed some typos
  made exceptions from the db optional set address for updae mails correctly
  added exceptions to dba class added exception handling to index.php, please mind that there is no recovery at the moment added transactions to db update. Please mind that they might not be supported by db table engines. added admin email on failed updates

* master:
path to default.php in theme dir was incorrect
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'

* remotes/upstream/master:
  path to default.php in theme dir was incorrect

* master:
aaah, nice asides ;). we'll be updating these soon

Signed-off-by: Simon L'nu <simon.lnu@gmail.com>
Merge pull request #221 from simonlnu/master

aaah, nice asides ;). we'll be updating these soon