Added methods to get posts, threads and categories by ID.

Added javadoc for some methods
Added stubs to decide if users are alloed to create categories, threads and posts
fixed front-page links
Fixed login error if username doesn't exist
More index page stuff