Generated navigation class cleanup

Added function to clean navigation by removing classes generated by
WordPress in menus.
Added ABSPATH check

Added short function to check if the ABSPATH constant was defined for
added security.