refactored resultcodes to constants
added .gitignore
Merge remote-tracking branch 'origin/master'

Conflicts:
	api/apiJSON.php
Merge pull request #2 from sammy8806/master

refactored resultcodes to constants