[build] Move core sources into their own subdirectory
[misc] Added a standard .gitignore file