[webui] rework flash code

:note is a OBS only thing, :notice is rails. Same with :warn and :alert
[api,webui] use dalli instead of memcache-client
[api] no need to call test_end - the next start is good enough
[api] some random preparations for rails4