log related fixes

1. use logmanager consistently in all places.
2. keep getLogs to return string array, remove message version for now. 
3. fix sample by adding logging.js to main.html file.