change device module
change function name register to registerAndroid
remove redundancy code fragments
add new method order
add app policy as comments
change registerAndroid function
add new changes
Merge branch 'refactorrc1' of github.com:WSO2Mobile/mdm into refactorrc1

Conflicts:
	config/app.js
	modules/common.js
Merge branch 'refactorrc1' into rc1

Conflicts:
	modules/device.js
Merge branch 'rc1' of https://github.com/WSO2Mobile/mdm into rc1

Conflicts:
	modules/device.js