refactored etherpad.ejs header code and removed useless if in epl-loading-code
moved header of document-view into doc.ejs since it is not special to EPL