add support for utf8
moved FilesForCouch to utils
better nl2br filter, only br no p
added max number of invoices parameter, put everything into self.invoice