Edited the API and improved on the authentication.

Authentication now more secure.
Fixed API so that it now allows arrays to be able to be passed and not
just booleans.