Added loggin attempts. Requires apc
Sessions cookies restricted by IP
logout redirects to home