indents -> tabs :)
frontend code refactoring - scripts moved to separate files
some cosmetic renames to reflect we support document attachments too