substitute mysqli for old deprecated mysql
small fixes
namespace and mysqli port fixes
always use https image for twitter, Kiki is now officially HTTPS-where-possible