Cleaned up ownership of rules within grammars

Now, when adding rules to a grammar, you relinquish control of it, and
as such are not allowed to manipulate it after the fact. If you do need
to manipulate it, get a reference to the internal version by calling
getRuleByName on the recognitiongrammar.
Fixed memory reallocation bug

Fixed an error wherein moving states stored in Rule::myChildStates due
to container expansion would cause pointers to become invalid in the
middle of a long call tree, resulting in calls being made to objects
that had been moved.
States now keep a pointer reference to their parent rule instead of just
an ID.
Fixed rule movement

Flow::Rules can now be returned from functions by moving them out of it,
and will retain all of their states and transitions
RecognitionContext.getEvents now fails nicely

getEvents would assume success after timeout expired and attempt to
construct a phrase object regardless of the success. It now returns an
empty phrase object instead.
Added operator bool method to ResPhrase to check for validity of phrase,
as well as move functionality.
Basic Media Player integration
Switched COM mode to multithreaded

Multithreaded mode required for interfacing with WMP
Replaced buildMusicIndex with proper API call

instead of building a music index manually as before, we use the
getAttributeStringCollection to get a complete list of all albums,
genres, artists, etc. Really should've researched this better before
going for the index method.
Added some media-related rules for testing

Added rules for lists of artists and a "Play all music by <X>" rule.
They currently do nothing, except get recognized.
Simplification and testing

getByAttribute had the attribute "Artist" hardcoded, so getAllGenres and
getAllAlbums returned wrongful results.
Added check to getByAttribute to exclude empty fields (It breaks SAPI)
Merge branch 'Media-Player-Integration' of https://github.com/MathiasPius/Home into Media-Player-Integration

Conflicts:
	FlowState.cpp
	FlowState.h
	main.cpp