Santa Clara enterprise security firm Shape Security announced a $51m funding round, a $1bn valuation and plans to file for an IPO.