Write code removed from controllers and factories. Song detail api added