Fixed API authentication

	* Fixed values on headers
	* Return profile as json
	* Added middleware to JSON
	* Added validation with the user and provided id
	* Removed slim extras