move most outside JS dependencies to bower management
add commands for installing dependencies, split dependencies into required and optional lists