Adding missing custom module icon support

Adding missing custom module icon support in sidebar to accompany navbar support. Also added transparent class to match current core module icons. Also misc code formatting.