trim for all serialized values

Change-Id: Id36397dc8ecd16e10e3ad169de8e3932d40a058c
MB-8145: support of read-only user

Change-Id: Ia2b44e858e7cb08f2ba49e519b6c363a354ca357
MB-100: introduced menelaus_util:reply_404/1

Change-Id: I57d8d1ab2829a70dcd85a64b94c8656393880f1e
MB-100: killed auth_bucket_with_info menelaus_web action type

Change-Id: I3c4aca708271f09d30838e01073529962d7876f4
MB-100: removed unused poolid argument from checking_bucket_uuid

Change-Id: Ib3f4d19d4b83e825e402fef371757d60e4496b49
MB-100:replaced extract_auth(username, ..) with explicit function

Change-Id: I6b3e17b634342ab28fd96b4a1df615f90a17aaf3
MB-100: include otpNode even if auth is not admin

Because RO user UI will need this stuff.

Change-Id: I6dfd4b5007c3280d4d8b533b1614f3ca79e1243f
MB-100: removed superfluous calls checking_bucket_access

Change-Id: Ieafe64ab40d0326678cb5b1c7eb6ebf9fcbef3b7
MB-100: killed checking_bucket_access

Things appear clearer if we remove one layer of indirection here.

Change-Id: I54e9b44978242a6f637c8db3a04ff9f321250cfd
MB-100: killed build_bucket_node_infos/5

"Extra arg" was not used.

Change-Id: I30049c5937ad3e066cfca69deccd41bdaa0bc0e5
MB-100: dont send otpCookie to UI

Change-Id: I2088e824b21213898665d3f4cf5a0fa8a3fe4f0d
MB-100: removed passing UserPassword to pool_info functions

We really only need to know if request is executed under admin or not.

Change-Id: Idf921acfd5f4457bab2bfc69b3df26f9f408fb82
MB-8145: implemented auth for read-only admin

Change-Id: I8eed9d548db82b50e5b1b2b13491cfff7f934ea9
MB-8661: implemented ui auth via 10-minute token

UI is now doing POST to /uilogin on login. Which sets 10 minute cookie
with token identifying authorized user.

Auth tokens are stored and managed per-node in new menelaus_ui_auth
service. They are not replicated.

Long-polling pool-details replies also check if token is about to
expire and if so it generates new token that's set into updated cookie.

{auth_cookie, is replaced with normal auth because normal auth is now
cookie-based.

Change-Id: If0b91428a9e6435104c9afdf314c2fd67b4a3ceb
MB-100: don't crash UI when /pools auth doesn't work

Logout does not remove auth cookie. That causes /pools request right
after logout to fail with 401. But despite that
UpdatesNotificationsSection still tries to render prettified version
which doesn't exist yet.

Change-Id: I1a49f55947b010f58101de09fbbc300a7f0ff930