Added profile editing, also lot's of other stuff

I know i'm commiting commented code in profile.php.
Also i forgot to commit stuff during the day so there's a lot of stuff
unrelated to eachother in this mess