fixed real_escape_string

Changed mysql_real_escape_string to $mysql->real_escape_string.
Previous function has been deprecated and removed
updated index. changed header links. added logout. added plugin download page