Some BBcode methods.
Moved menu support to class.
Modifed nl function
Changes in DB model.