Build failing test for Complex shim ignore list with packages

### Note
To run the testcase copy "js" script and "/steal/build/packages/test/complexshimignorelist/common/stealconfig.js" to parent folder of steal.

### ISSUE-1 Build is failing, when packages are loaded directly(instead of individual files) and stolen packages are added to shim ignore list

* build command "./js ./steal/build/packages/test/complexshimignorelist/app1/scripts/build.js" fails with below error
* see /steal/build/packages/test/complexshimignorelist/common/stealconfig.js

Note: 
* Able to access directly from browser using http://localhost/steal/build/packages/test/complexshimignorelist/app1/index.html

![screen shot 2013-09-03 at 5 54 06 pm](https://f.cloud.github.com/assets/613351/1077449/c4bc6012-14fe-11e3-938a-a949f0e1b7eb.png)

* See attachment - In browser package is loaded directly instead of individual files 
* /steal/test/complexshimignorelist/buildgenerated/common - is dir generated by running build command "./js ./steal/build/packages/test/complexshimignorelist/common/scripts/build.js"
* /steal/build/packages/test/complexshimignorelist/common/my/packages - is manually copied from /steal/build/packages/test/complexshimignorelist/buildgenerated/common/packages


```

aballa-macbook-pro:projects aballa$ ./js ./steal/build/packages/test/complexshimignorelist/app1/scripts/build.js
Building to theme/
  opening steal/build/packages/test/complexshimignorelist/app1/index.html
  adding dependencies
  + stealconfig.js
  + theme/my/init.js
  + common/my/common.js
  + common/my/common-1.js
  + common/my/common-2.js
  + common/my/common-1.css
  + common/my/common-2.css
  + common//packages/common.css
java.lang.StackOverflowError
	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2557)
	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)

```
### ISSUE-2 When "steal.paths" are in stealconfig.js file package css doesn't have merged css
* /steal/build/packages/test/complexshimignorelist/buildgenerated/common/packages/common.css doesn't have merged css
* build command "./js ./steal/build/packages/test/complexshimignorelist/common/scripts/build.js" is successful
* see /steal/build/packages/test/complexshimignorelist/common/stealconfig.js

Note: Able to access directly from browser using http://localhost/steal/build/packages/test/complexshimignorelist/common/index.html

#### OUTPUT
```
aballa-macbook-pro:projects aballa$ ./js ./steal/build/packages/test/complexshimignorelist/common/scripts/build.js
Building to common/
  opening steal/build/packages/test/complexshimignorelist/common/index.html
  adding dependencies
  + stealconfig.js
  + common/my/make_package.js
 
  stealing common/my/common.js
  + common/my/common.js
  + common/my/common-1.js
  + common/my/common-2.js
  + common/my/common-1.css
  + common/my/common-2.css

Building packages
  Package: common//packages/common js/css
  + common/my/common-1.js
  + common/my/common-2.js
  + common/my/common-1.css
  + common/my/common-2.css
  + common/my/common.js
 
Building common/production.js

```

### ISSUE-3 When "steal.paths" are in index.html file application build is failing
* build command "./js ./steal/build/packages/test/complexshimignorelist/common/scripts/build.js" fails with below error
Note: Able to access directly from browser using http://localhost/steal/build/packages/test/complexshimignorelist/common/index.html


#### OUTPUT
```
aballa-macbook-pro:projects aballa$ ./js ./steal/build/packages/test/complexshimignorelist/common/scripts/build.js
Building to common/
  opening steal/build/packages/test/complexshimignorelist/common/index.html
  adding dependencies
  + stealconfig.js
  + common/my/make_package.js
 
  stealing common/my/common.js
  + common/my/common.js
  + common/my/common-1.js
  + common/my/common-2.js
  + common/my/common-1.css
  + common/my/common-2.css
!!!!!!!!!!! ERROR !!!!!!!!!!!

-message    = Cannot read property "files" from undefined
-fileName   = 
-name       = TypeError
-lineNumber = 0

```

### Requirement
* Each module should have its own package (e.g. com.my.common will have common.js package)
* Module (e.g. com.my.app1) which is dependent on other common modules (e.g. com.my.common) will steal the package (common.js package) instead of including common.js in its production.js. By doing so we can deliver common modules independently without having to build and deliver all module which are dependent on common modules when ever common modules change.