Moved non public framework parts to app folder

this is a step in making the application more organised and secure