Two powerful explosions have rocked the northern Lebanese city of Tripoli, one outside a mosque with the other one hitting central Tripoli, causing casualties.