Small amendments, added some functions

Get page ID from slug, and switch on the link manager in the admin area.
+ some adjustments.