Fixed profile.php

profile.php now shows your username, instead of just james.
Added content-type headers

Added Content-type headers for JSON and XML requests