Fix render() encoding

Fixes exceptions like this:
ERROR in CGI: Traceback (most recent call last):
  File "/var/www/html/ulg.py", line 785, in <module>
    handler.index(**params)
  File "/var/www/html/ulg.py", line 722, in index
    print self.renderULGIndex()
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in
position 6254: ordinal not in range(128)

Signed-off-by: Tomas Hlavacek <tmshlvck@gmail.com>
gracefully handle non UTF-8 output of whois

Fixes exeptions like this (in case whois returns non utf-8 output):
ERROR in CGI: Traceback (most recent call last):
    File "/var/www/html/ulg.py", line 775, in <module>
    handler.whois(**params)
    File "/var/www/html/ulg.py", line 738, in whois
    print self.runULGWhois(key,objtype)
    File "/var/www/html/ulg.py", line 710, in runULGWhois
    res = whois.lookup(key)
    File "/var/www/html/whois.py", line 43, in lookup
    res=res+l.decode('utf-8')
    File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf3 in position 24:
invalid continuation byte

Signed-off-by: Tomas Hlavacek <tmshlvck@gmail.com>
BIRD: Fix timeout in case ip/subnet is not in the routing table

Fixes exceptions like this:
ERROR: Exception occured while running a command:Traceback (most recent
call last):
  File "/var/www/html/ulg.py", line 498, in commandThreadBody
    session.getRouter().runAsyncCommand(session.getCommand(),session.getParameters(),FakeSessionFile(session))
  File "/var/www/html/ulgmodel.py", line 463, in runAsyncCommand
    return self.runRawCommand(c,outfile)
  File "/var/www/html/ulgbird.py", line 544, in runRawCommand
    l = sf.readline()
  File "/usr/lib/python2.7/socket.py", line 447, in readline
    data = self._sock.recv(self._rbufsize)
timeout: timed out

Signed-off-by: Tomas Hlavacek <tmshlvck@gmail.com>