many changes, read description. 

1. 245 field.__metadata instead of [] syntax (by jshint)
2. jsom instead csom
3. utils added to spyreqs
4. jsom.checkHostList function added

5. lines:
	context.set_webRequestExecutorFactory(factory);
	appContextSite = new SP.AppContextSite(context, hostUrl);
removed from each jsom function and added once outside

6. function getQueryStringParameter(param) was removed
7. list parameter was replaced with listObj within jsom, to know that it is an object
8. define spyreqs first, run code then
9. some blank lines removed.