change L2VPN class parameters order to match wire, add API for vpls
add test code for vpls - encoding not verified