refactor code
add feature to allow rendering of layers for document, modified example files to match the changes
add deep_merge to properly merge array/object like javascript.extend function
test settings.header-height option
update example
add function deepMerge as an alias of deep_merge
update README