Added metatags functions and tests

@Tubyhes could you review and merge?