Add .gitignore
Extract more code from Xitrum