Fixes issue #691.

Merging text nodes when adding a new node has the following two special cases:

1. Try to merge with the previous node if this is one of the following: add_child, add_next_sibling or replace
2. Try to merge with the next node if this is one of the following: add_previous_sibling or replace
Fixes issue #674.

Use URI instead of trying to figure out how to interpret the URL. In case this failed, fall back to the old behavior.
Merge pull request #697 from jvshahid/issue_691

Thanks for fixing issue#691. This change correctly fixes the bug and doesn't have any side effect.
Merge pull request #698 from jvshahid/issue_674

Thanks again for fixing issue#674. The change correctly fixed the bug.
Tweeks a test to grab doc from internet. If there's no internet connection available, skips the test.
Merge branch '1.5.4'
Updates changelogs.
Changelog
Version bump to 1.5.5.rc1
Changelog
Temporarily, let's commit the generated parser and tokenizer code, so that we can test JRuby on Travis-CI.

See https://groups.google.com/group/nokogiri-core/browse_thread/thread/2229680cdb8d93bb for background.
More generated-file hackery for JRuby/Travis support.

See related commit 5c5e1b5c74e6c24901db9a4fc41a2315ec6c0bda
Fix for issue#699. Empty HTML document should return empty string for its text method.
Fix for issue#673, uncaught throw 'encoding_found' in JRuby. This fix has cut one 1.9 error off, too.
By other fix(es), the issue #583 has been fixed as well. So, just updates changelogs.
Updates Changelogs
Updates changelogs, again. push parser related.
Fix for issue#514. Empty NodeSet returned from Xpath evaluation didn't have a reference node correctly decorated.
Manually merges pull request #681. Thanks, Piotr Szmielew. This fixes xpath with namespace raises an error.
Fix for issue#695. Namespace print problem in case of directly sublcassed from Nokogiri::XML::Node.