Fixed wrong authorization on emargo and staging entries. Added respective...

Fixed wrong authorization on emargo and staging entries. Added respective tests. Minor UI layout fixes.
5 jobs for experimental in 16 minutes and 23 seconds (queued for 1 second)