New implementation of path management
Cleanup trailing whitespaces
Std vs Misc: move more code to Std, leave compiler specific routines in Misc