Completed support for creating an HTML invoice

Also, other UI improvements