get folder for module web files programatically - TRUNK-1589

Made some changes - TRUNK-1589

Made more changes to the tests - TRUNK-1589

Applied auto format changes - TRUNK-1589