Fixed wrong authorization on emargo and staging entries. Added respective tests. Minor UI layout fixes.