Multiple optimizations and refactoring code.

Remove unnecessary cookie opener, added logger, added index file when
finish to friendly open local solutions.