Fix for #49, upgrade scala to 2.11.2

Fix for #49, upgrade scala to 2.11.2
```
val lastAppId = appId - 1
```
should be```instead of val appId = appMasterDataRequest.appId``` ?