Updated logevent function to fix XSS

Fixed 2 Stored XSS vulnerabilities in logevent(). Replaced wpdb->escape() with esc_attr, which will properly entity encode the REQUEST_URI and HTTP_REFERER.
Merge pull request #40 from i0wn/master

Updated logevent()