Change code formatting style to use tabs

Use tabs for indentation and spaces for alignment in all Java and XML
code. Also adjust some other properties of the code formatting. It's
probably worth writing up a short code style document.