Moved all the code for creating a new table to a different file.

Now, in case the definition of the table changes (new columns are
added or removed) then the table can be displayed appropriately by simply
changing this one file, instead of having to change code at all the places
that the table is displayed.
Changed loginpage.php to homepage.php in different files.
[issue-fixed] Realised that if there is only one file, then when displaying
on the home page, both assignor and assignee will be able to edit comments.

But this is not desired. So separated into two files. One file will handle
tables that don't have forms in them, and the second will have tables that have
forms in them.
Merge pull request #8 from icyflame/better-encapsulation

Better encapsulation for displaying tables