Various improvements.

- Cleaned up the code.
- Improved SQL performance when posting a reply.
- Removed unnecessary piece of codes.
- Added custom `SELinks` ability.