Change test a little
Add todos to javascript
Add tests, mark some as incomplete
Change calculateScaleDimensions to handle crop-option
Calculate aspect-ratio for now only in bestfit=false

This is done because else it's calculating wrong width when width should be fixed
Change test remove bestfit from asserted values
Improve comments
Improve tests: check if returned image will be kept original
Handle when image can be kept original
Implement scale function for new parameter
Handle when result stays original
Enable viewcache for test of imagecomponent
Mark test as incomplete