Add stricter synchronization to startup / shutdown

Use lock when verifying start / stop / init status. Also remove
misplaced check in component init routine.
Filter out many things in gitignore
Add shell of remote console's main()
Add getter for main config's media path container
Add fixmes for failed startup in main()s