Fix off-by-one errors in registers

Reported by Florian Weimer.
https://bugzilla.redhat.com/show_bug.cgi?id=959215
m2ts_filter.c: include config.h
Support for building with MSVC 2010 & 2012
Optimized file I/O for chained usage with libavformat
Added bd_get_clip_infos

This function allows for querying information directly related to the
clips inside a title.
Include clpi_data.h to make debugging easier.
Add a new way streams are exported directly from the CLPI information, skipping the (sometimes incomplete) playlist files.
Build with BD-J support
Changed libbluray to be build against J2ME instead of J2SE
Added DLL export for bd_register_argb_overlay_proc
Enabled freetype2 for libbluray
Changed JNI calling convention to be __cdecl when building with HAVE_BDJ_J2ME flag

- different calling convention for J2ME based JVMs, not sure if for all but at least PhoneME and Cyberlink ones
Cleanup Java event queues

- Fix for Harry Potter image loading issue
Added text based subtitle decoder source files to the solution
Added exports for libbluray's reference counting functions
Added new source files to the solution

libaacs.c & libbdplus.c is splitted away from the bluray.c
Added M2TS filter source and header