Adjust tests to use mocka
Add validateCallback for InputStream->read()

- add InvalidValueException
- add validateCallback param for read methods
- add testReadWithValidateCallback
Add test for writing message
Introduce InputStream->select()

- introduce select method (use read with callback)
- use select in confirm
- adjust test
Improve testConfirm (use mocka, test more throughout)
Adjust CM_App_InstallationTest
Disallow key=>value arrays for select (move logic outside of select)
Add select to InputStream_Interface
Merge branch 'master' of github.com:cargomedia/CM into issue-1336

Conflicts:
	tests/library/CM/App/InstallationTest.php
Use mockObject() instead of mockClass()->newInstance(), check method call count after first config
Merge pull request #1336 from tomaszdurka/issue-1336

Implement InputStream->read validate callback, add InputStream->select()