add logger, fix bug with requirejs
Merge pull request #16 from gabilen/logger

add logger, fix bug with requirejs, update config(only read)