don't match on substrings of paths in RemoveContentForPath
use GetSubPaths for RemoveContentFromPath, and make sure all content in the path (and subpaths) are cleaned
add utf8_strlen function
don't use LIKE to match paths - mysql doesn't like backslashes in LIKE
Add defaultseason attribute to TV Show regex

Allow the default season to be set for TV shows. This will be used when
no season is found in the filename. If no default is set, use 1 as the
default season for the sake of both backwards compatability and to
conform with the assumption that season 1 is the standard season, as
opposed to season 0 (usually used for special episodes).

Use of this feature is through the advancedsettings.xml configuration
file, under the tvshowmatching tag. An example is as follows.

<tvshowmatching action="append">
   <regexp defaultseason="0">[\._ \-]()S([0-9]{1,3})([^\\/]*)-</regexp>
   <regexp defaultseason="1">[\._ \-]()E([0-9]{1,3})([^\\/]*)-</regexp>
   <regexp>[\._ \-]()X([0-9]{1,3})([^\\/]*)-</regexp>
</tvshowmatching>

Here are some sample filenames run through these settings.

Filename                XBMC Result  Comment
'Foo - S001 - X.avi' => 'Foo - 0x1'  (Season forced to 0)
'Foo - E001 - X.avi' => 'Foo - 1x1'  (Season forced to 1; not needed)
'Foo - X001 - X.avi' => 'Foo - 1x1'  (Season defaulted to 1)
use < 0 rather than == -1 as it's a little clearer once operator==() is implemented correctly
fix AddonVersion::operator==() so that it is consistent with AddonVersion::operator<()
fix up AddonVersion::Test() now that == behaves as it should, and add some basic info as to what is expected in a doxy comment
incorrect usage of readlink(), strrchr() et. al. (potential read/write of unallocated memory). Thanks to bxyz.
Add the option the eject the CD after ripping is down(full disc only)
	modified:   language/English/strings.xml
	modified:   xbmc/cdrip/CDDARipper.cpp
	modified:   xbmc/settings/GUISettings.cpp
Changed string
	modified:   language/English/strings.xml

set default to on
	modified:   xbmc/settings/GUISettings.cpp
added "dateAdded" field to "path" table in videodb and use it for better sorting for GetRecentlyAddedFoo() methods
reset invalidated flag only if we processed control
jsonrpc: fix "title" property not being filled correctly (empty)

The problem is that both CFileItem and CVideoInfoTag/CMusicInfoTag serialize a property named "title".
Because of the first call to CFileItemHandler::FillDetails with the serialized CFileItem the "title" property is added to the result with an empty value.
On the second call to CFileItemHandler::FillDetails with the serialized CVideoInfoTag/CMusicInfoTag (which contains the valid value for the "title" property) it ignores that value because "title" is already set (but empty) in the result.
use file/directory modification/creation time for the value of the "dateAdded" field
use the newly available CVideoInfoTag::m_dateAdded in SSortFileItem::ByDateAdded
smartplaylists: make use of the new dateAdded field for videos
jsonrpc: expose the new "dateadded" property for videos and provide it as a sort method
Merge pull request #672 from Montellese/videodb_dateadded

VideoDatabase: add "dateAdded" field to files and path table
Merge pull request #826 from pieh/invalid_flag

Reset invalidated flag only if we processed control
fix broken grouplist auto-wrapping after dd9aae3