Refactor duplicable

much simpler implementation
better for users / tested on another project
attachment source was bound to hostname - fixed
copy application layout so user can override it