compile with phonegap build 3.4.0, closing conection when upload

https://issues.apache.org/jira/browse/CB-2293#comment-13753360
fix upload plugin gettig de filename from camera
fix MOBILE-567. add .jpg when missing to be pickable on profile
fix MOBILE-567. add .jpg when missing to be pickable on profile
Merge branch 'MOBILE-566_fails_uploading' of https://github.com/marcoblancas/moodlemobile into MOBILE-566_fails_uploading

Conflicts:
	plugins/upload/main.js
fix () problem
Merge branch 'MOBILE-566_fails_uploading' into entrega_final