Moved ProfileScope into its own package
Implemented basic scope system