Added unit tests for the Configuration classes and minor cleanup

Change-Id: I0d3260f381eb212c793f9fdacb8c247ae32867e0
Merge pull request #12 from tribal-tec/master

Move constrainAspectRatio property to Options for easier testability
Merge pull request #11 from rdumusc/configrefactoring

Added unit tests for the Configuration classes and minor cleanup
Fix memleaks, minor cleanups

Change-Id: I4c27ff6bdfb3960029211b28dd229b1fd560140c