player: fix DVD playback

Crashed in case of lazily added subtitle streams, which add tracks with
track->stream set to NULL.

Fixes gituhub issue #439.
mpv.desktop: Add Czech translations
player: load encoding-profiles.conf before the main config

Otherwise one can't add profiles based on the encoding profiles.
manpage: fix description on the slave mode msglevel
options: make  --msglevel=help print something helpful
manpage: clarifications about bitmap subtitles and --secondary-sid
build: make configure fail if both __atomic and __sync are not available
build: fix typo
stream: always respect sector_size, fixes cdda://

Streams like CDDA have special requirements in what quantities data can
be read: you can only read a sector at once, not more and not less. The
stream_peek() function didn't respect that and set less (used internal
buffer size of 2048 bytes, instead of CD sector size of 2352 bytes), so
no data was read and EOF was accidentally set, making playback with
cdda:// fail.

This is a regression since commit 9a723f, but that commit merely exposed
the issue (the redundant seek would clear the EOF flag).
osdep/io, mp_vfprintf: split out console detection
Windows: use the GUI subsystem, attach to console

This is necessary to start mpv without forcing a console window,
but also breaks console usability. A workaround is to call mpv
from a wrapper process that uses the console subsystem and helps
redirecting the standard streams and WriteConsole output to where
they belong.
Add Windows console wrapper program (mpv.com)
ao_alsa: Fix PCM resume after suspend

Fixes #324
ao_alsa: Unbreak pause/resume

Well that was dumb.
wayland: don't change set fullscreen twice

Newest weston chrashes if we call set_fullscreen twice. This is a major bug
I which I should probably report.
wayland/shm: only commit new frames

Only attach and commit new buffers. This also increases performance when
paused.
wayland/opengl: fix garbage borders

It seems mpv draws garbage in those regions. Now we calculate the aspect and
let weston draw the black borders.
build: fix cocoa configure check on OS X 10.7

It failed because the 10.7 SDK doesn't natively support array and dictionary
subscripting.
ao_alsa: remove 9 year old typo

Actually, remove the whole comment, because it's outdated and
get_space() returns the number of free samples now.
vda: fix build on OS X 10.7

Looks like on 10.8 OpenGL.h recursively includes CGLIOSurface.h. That is not
the case for 10.7 so the build was broken on that version of OS X.