use logmanager to expose LogManager, consistent expose logs with getLogs.
add loggin.js in main.html
Merge pull request #43 from uProxy/shanjian-logfix

log related fixes