Added stored procedure and API support for searching countries by pattern. Not currently working, failing in Languages.class.php because somehow result coming back is null. Part of #844