Speed up database operations

1. Prepare statements only once.
2. Use batched inserts.
Fix TYPE_FORWARD_ONLY cursors
Apply batch in one transaction
Don’t catch NumberFormatException
[ca] New rules: patxorra, bronca
[pl] fix a lot of false alarms, add new feature to SimpleReplaceRule to avoid some false alarms
[ca] New rules: desperdici
[ca] update replace_verbs.txt
update JUnit test to use the current method, not the depracated one
[pl] fix false alarms
[pl] and even more fixes
trivial code style changes, no functional change
speed up pattern rules on inflected tokens as well (gets visible improvement in Polish without really making the code much more complex)
Catch IO Exceptions in languagetool-server when connection has finished
Merge pull request #64 from xavivars/master

Catch IO Exceptions in languagetool-server when connection has finished
improve javadoc; fix indentation
fix indentation
[pl] one more rule, more disambiguation
[br] fixed typo in message reported by Fulup Jakez.
fix failing test