fix problem for BS3 modal

If you add input in modal datepicker show under modal shadow layer.
Set 'appendTo' for fix this problem, eg.:
<pre>
$('.datepicker-input').datepicker({
	appendTO: "div.modal"
});
</pre>
z-index calculation should not stop at first element

i guess that when calculating proper z-index for the datepicker, we should find the max z-index value of parents() and not stop at first

related to #533 #170 #683 #678 #656 #665 #634 #621 #609
indent formating
indent formating
oops forgot one line
Update Catalan and Spanish localizations.
Merge branch 'master' of git://github.com/fadomire/bootstrap-datepicker into fadomire-master

Conflicts:
	js/bootstrap-datepicker.js
Merge pull request #710 from fadomire/master
Merge pull request #665 from PEKTOP/patch-3

fix problem for BS3 modal
Fixed jshint issue
Merge remote-tracking branch 'origin/master'
Merge branch 'master' of git://github.com/dukebody/bootstrap-datepicker into dukebody-master

Conflicts:
	js/locales/bootstrap-datepicker.es.js
Merge pull request #1048 from dukebody/master
Added docs for appendTo option. Closes #1189
Revert "fix problem for BS3 modal"
Merge pull request #1193 from eternicode/revert-665-patch-3

Revert "fix problem for BS3 modal"
Reverted docs for #665
Merge remote-tracking branch 'origin/master'
Update translation

+clear
+format
Merge pull request #1194 from hayk/patch-2

Update translation