api reload: create loader, move stuff into reloaded files/api functions

* based on API reloader from supro/app_modules/userman/lib/chat

Signed-off-by: Oleg Verych <olecom@gmail.com>
ui: now api is in '/lib/api/log'; expect text as reply

Signed-off-by: Oleg Verych <olecom@gmail.com>
ui: bind api reload to dev reload of the view

Signed-off-by: Oleg Verych <olecom@gmail.com>
Merge pull request #9 from olecom/api_reload#8

api: make hot reload for it (close #8)