Profile names are clickable

Checks for permission to view profiles first. If permission is granted,
draw posts array links profile page to profile name.

Two new functions added:

get_authorID: gets author id based on post id
get_username: gets author's username based on user ID

Get_username notimplemented, but I kept it in case someone needs it
later.