Repository housekeeping.
1) added .gitignore to ignore local IDE files etc.
2) restructuring sources a bit.