Fixing links, php warnings.
Replacing deprecated Database::count_rows() function.
Commenting jcapture code.
Removing jcapture see #5101