move source files to the src/ folder

The config.php shouldn't be in the public folder, so I moved it to the new src/ folder and moved the rest of the source code files there too.